diff options
| author | raysan5 <[email protected]> | 2020-12-29 22:01:48 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-12-29 22:01:48 +0100 |
| commit | 22b179e66c01866ab8e3aee1b1114f5efbd89a00 (patch) | |
| tree | ac7ce43c5a81d98a194eb74e7a78c2fc5d7f971b /examples/shaders | |
| parent | 9ed29725a0ee1629db7aa25c30b3632a712ce212 (diff) | |
| download | raylib-22b179e66c01866ab8e3aee1b1114f5efbd89a00.tar.gz raylib-22b179e66c01866ab8e3aee1b1114f5efbd89a00.zip | |
Review rlights helper module #1489
Diffstat (limited to 'examples/shaders')
| -rw-r--r-- | examples/shaders/rlights.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/shaders/rlights.h b/examples/shaders/rlights.h index f9727c9e..66185bb4 100644 --- a/examples/shaders/rlights.h +++ b/examples/shaders/rlights.h @@ -11,7 +11,7 @@ * * LICENSE: zlib/libpng * -* Copyright (c) 2017-2019 Victor Fisac (@victorfisac) and Ramon Santamaria (@raysan5) +* Copyright (c) 2017-2020 Victor Fisac (@victorfisac) and Ramon Santamaria (@raysan5) * * This software is provided "as-is", without any express or implied warranty. In no event * will the authors be held liable for any damages arising from the use of this software. @@ -69,11 +69,6 @@ extern "C" { // Prevents name mangling of functions #endif //---------------------------------------------------------------------------------- -// Global Variables Definition -//---------------------------------------------------------------------------------- -int lightsCount = 0; // Current amount of created lights - -//---------------------------------------------------------------------------------- // Module Functions Declaration //---------------------------------------------------------------------------------- Light CreateLight(int type, Vector3 position, Vector3 target, Color color, Shader shader); // Create a light and get shader locations @@ -109,7 +104,7 @@ void UpdateLightValues(Shader shader, Light light); // Send light proper //---------------------------------------------------------------------------------- // Global Variables Definition //---------------------------------------------------------------------------------- -// ... +static int lightsCount = 0; // Current amount of created lights //---------------------------------------------------------------------------------- // Module specific Functions Declaration |
