summaryrefslogtreecommitdiff
path: root/src/lights.c
diff options
context:
space:
mode:
authorjussi2023-10-31 17:15:48 +0200
committerjussi2023-10-31 17:15:48 +0200
commitb9903277bcea27a26fe591d10bdfcc4c2dc03654 (patch)
tree3f0ef10571764a11b686cea427a2c490c37cc58e /src/lights.c
parentbe39fd96344ee1f4f85ac5c63b4e5f9daf6e5171 (diff)
downloadreilua-enhanced-b9903277bcea27a26fe591d10bdfcc4c2dc03654.tar.gz
reilua-enhanced-b9903277bcea27a26fe591d10bdfcc4c2dc03654.tar.bz2
reilua-enhanced-b9903277bcea27a26fe591d10bdfcc4c2dc03654.zip
Merged uluaGet*Index functions to uluaGet* functions.
Diffstat (limited to 'src/lights.c')
-rw-r--r--src/lights.c12
1 files changed, 6 insertions, 6 deletions
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;