tools/rLuaParser/raylib-lua_test.h
static Camera3D LuaGetArgument_Camera3D(lua_State *L, int index)
{
    Camera3D result = { 0 };
    index = lua_absindex(L, index); // Makes sure we use absolute indices because we push multiple values
    luaL_argcheck(L, lua_getfield(L, index, "position") == LUA_TNUMBER, index, "Expected Camera3D.position");
    result.position = LuaGetArgument_Vector3(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "target") == LUA_TNUMBER, index, "Expected Camera3D.target");
    result.target = LuaGetArgument_Vector3(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "up") == LUA_TNUMBER, index, "Expected Camera3D.up");
    result.up = LuaGetArgument_Vector3(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "fovy") == LUA_TNUMBER, index, "Expected Camera3D.fovy");
    result.fovy = LuaGetArgument_float(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "type") == LUA_TNUMBER, index, "Expected Camera3D.type");
    result.type = LuaGetArgument_int(L, -1);
    lua_pop(L, 5);
    return result;
}
// Camera type, defines a camera position/orientation in 3d space
Camera type, defines a camera position/orientation in 3d space
Camera type defines a camera position / orientation in 3d space
static Camera3D LuaGetArgument_Camera3D(lua_State *L, int index)
{
    Camera3D result = { 0 };
    index = lua_absindex(L, index); 
    luaL_argcheck(L, lua_getfield(L, index, "position") == LUA_TNUMBER, index, "Expected Camera3D.position");
    result.position = LuaGetArgument_Vector3(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "target") == LUA_TNUMBER, index, "Expected Camera3D.target");
    result.target = LuaGetArgument_Vector3(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "up") == LUA_TNUMBER, index, "Expected Camera3D.up");
    result.up = LuaGetArgument_Vector3(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "fovy") == LUA_TNUMBER, index, "Expected Camera3D.fovy");
    result.fovy = LuaGetArgument_float(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "type") == LUA_TNUMBER, index, "Expected Camera3D.type");
    result.type = LuaGetArgument_int(L, -1);
    lua_pop(L, 5);
    return result;
}
static Camera3D LuaGetArgument_Camera3D ( lua_State * L , int index ) { Camera3D result = { 0 } ; index = lua_absindex ( L , index ) ; luaL_argcheck ( L , lua_getfield ( L , index , " " ) == LUA_TNUMBER , index , " " ) ; result . position = LuaGetArgument_Vector3 ( L , -1 ) ; luaL_argcheck ( L , lua_getfield ( L , index , " " ) == LUA_TNUMBER , index , " " ) ; result . target = LuaGetArgument_Vector3 ( L , -1 ) ; luaL_argcheck ( L , lua_getfield ( L , index , " " ) == LUA_TNUMBER , index , " " ) ; result . up = LuaGetArgument_Vector3 ( L , -1 ) ; luaL_argcheck ( L , lua_getfield ( L , index , " " ) == LUA_TNUMBER , index , " " ) ; result . fovy = LuaGetArgument_float ( L , -1 ) ; luaL_argcheck ( L , lua_getfield ( L , index , " " ) == LUA_TNUMBER , index , " " ) ; result . type = LuaGetArgument_int ( L , -1 ) ; lua_pop ( L , 5 ) ; return result ; }
Camera type, defines a camera position/orientation in 3d space
Camera type defines a camera position / orientation in 3d space
// Makes sure we use absolute indices because we push multiple values