From 2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 6 Apr 2023 12:31:37 +0300 Subject: All global variables and functions are not in global RL table. doc_parser creates also ReiLua_API.lua. --- src/lights.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lights.c') 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; } -- cgit v1.2.3