From b9903277bcea27a26fe591d10bdfcc4c2dc03654 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 31 Oct 2023 17:15:48 +0200 Subject: Merged uluaGet*Index functions to uluaGet* functions. --- src/lights.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/lights.c') diff --git a/src/lights.c b/src/lights.c index 38ec04a..dc8b25e 100644 --- a/src/lights.c +++ b/src/lights.c @@ -20,9 +20,9 @@ Create a light and get shader locations */ int llightsCreateLight( lua_State *L ) { int type = luaL_checkinteger( L, 1 ); - Vector3 position = uluaGetVector3Index( L, 2 ); - Vector3 target = uluaGetVector3Index( L, 3 ); - Color color = uluaGetColorIndex( L, 4 ); + Vector3 position = uluaGetVector3( L, 2 ); + Vector3 target = uluaGetVector3( L, 3 ); + Color color = uluaGetColor( L, 4 ); Shader *shader = uluaGetShader( L, 5 ); uluaPushLight( L, CreateLight( type, position, target, color, *shader ) ); @@ -65,7 +65,7 @@ Set light position */ int llightsSetLightPosition( lua_State *L ) { Light *light = uluaGetLight( L, 1 ); - Vector3 position = uluaGetVector3Index( L, 2 ); + Vector3 position = uluaGetVector3( L, 2 ); light->position = position; @@ -79,7 +79,7 @@ Set light target */ int llightsSetLightTarget( lua_State *L ) { Light *light = uluaGetLight( L, 1 ); - Vector3 target = uluaGetVector3Index( L, 2 ); + Vector3 target = uluaGetVector3( L, 2 ); light->target = target; @@ -93,7 +93,7 @@ Set light color */ int llightsSetLightColor( lua_State *L ) { Light *light = uluaGetLight( L, 1 ); - Color color = uluaGetColorIndex( L, 2 ); + Color color = uluaGetColor( L, 2 ); light->color = color; -- cgit v1.2.3