diff options
| author | raysan5 <[email protected]> | 2020-12-24 13:51:24 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-12-24 13:51:24 +0100 |
| commit | b68e522ffc39ebff8268c6b522a3bb965878ad16 (patch) | |
| tree | 2699c3c28b033a5d2d92e8748d308f84e551d1de /examples/shaders | |
| parent | bab1b9c1c5cb416bd9125c1230288859eeafda30 (diff) | |
| download | raylib-b68e522ffc39ebff8268c6b522a3bb965878ad16.tar.gz raylib-b68e522ffc39ebff8268c6b522a3bb965878ad16.zip | |
Updated several files while porting examples to web
Diffstat (limited to 'examples/shaders')
| -rw-r--r-- | examples/shaders/rlights.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/shaders/rlights.h b/examples/shaders/rlights.h index 0441062b..f9727c9e 100644 --- a/examples/shaders/rlights.h +++ b/examples/shaders/rlights.h @@ -69,6 +69,11 @@ 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 @@ -104,7 +109,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 |
