diff options
| author | jussi | 2023-04-06 12:31:37 +0300 |
|---|---|---|
| committer | jussi | 2023-04-06 12:31:37 +0300 |
| commit | 2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a (patch) | |
| tree | 825775577403d9341045571adb266173513c4bbd /src/lights.c | |
| parent | 198a74c0aa27389c062c47bc29187c58a9d6c4a1 (diff) | |
| download | reilua-enhanced-2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a.tar.gz reilua-enhanced-2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a.tar.bz2 reilua-enhanced-2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a.zip | |
All global variables and functions are not in global RL table. doc_parser creates also ReiLua_API.lua.
Diffstat (limited to 'src/lights.c')
| -rw-r--r-- | src/lights.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lights.c b/src/lights.c index 381361e..b82ba8d 100644 --- a/src/lights.c +++ b/src/lights.c @@ -37,7 +37,7 @@ bool validLight( size_t id ) { */ /* -> light = RL_CreateLight( int type, Vector3 position, Vector3 target, Color color, Shader shader ) +> light = RL.CreateLight( int type, Vector3 position, Vector3 target, Color color, Shader shader ) Create a light and get shader locations @@ -46,7 +46,7 @@ Create a light and get shader locations */ int llightsCreateLight( lua_State *L ) { if ( !lua_isnumber( L, -5 ) || !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_CreateLight( int type, Vector3 position, Vector3 target, Color color, Shader shader )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.CreateLight( int type, Vector3 position, Vector3 target, Color color, Shader shader )" ); lua_pushinteger( L, -1 ); return 1; } @@ -76,7 +76,7 @@ int llightsCreateLight( lua_State *L ) { } /* -> success = RL_UpdateLightValues( Shader shader, Light light ) +> success = RL.UpdateLightValues( Shader shader, Light light ) Send light properties to shader @@ -85,7 +85,7 @@ Send light properties to shader */ int llightsUpdateLightValues( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_UpdateLightValues( Shader shader, Light light )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.UpdateLightValues( Shader shader, Light light )" ); lua_pushboolean( L, false ); return 1; } |
