tools/rLuaParser/raylib-lua_test.h
static Camera2D LuaGetArgument_Camera2D(lua_State *L, int index)
{
    Camera2D 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, "offset") == LUA_TNUMBER, index, "Expected Camera2D.offset");
    result.offset = LuaGetArgument_Vector2(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "target") == LUA_TNUMBER, index, "Expected Camera2D.target");
    result.target = LuaGetArgument_Vector2(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "rotation") == LUA_TNUMBER, index, "Expected Camera2D.rotation");
    result.rotation = LuaGetArgument_float(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "zoom") == LUA_TNUMBER, index, "Expected Camera2D.zoom");
    result.zoom = LuaGetArgument_float(L, -1);
    lua_pop(L, 4);
    return result;
}
// Camera2D type, defines a 2d camera
Camera2D type, defines a 2d camera
Camera2D type defines a 2d camera
static Camera2D LuaGetArgument_Camera2D(lua_State *L, int index)
{
    Camera2D result = { 0 };
    index = lua_absindex(L, index); 
    luaL_argcheck(L, lua_getfield(L, index, "offset") == LUA_TNUMBER, index, "Expected Camera2D.offset");
    result.offset = LuaGetArgument_Vector2(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "target") == LUA_TNUMBER, index, "Expected Camera2D.target");
    result.target = LuaGetArgument_Vector2(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "rotation") == LUA_TNUMBER, index, "Expected Camera2D.rotation");
    result.rotation = LuaGetArgument_float(L, -1);
    luaL_argcheck(L, lua_getfield(L, index, "zoom") == LUA_TNUMBER, index, "Expected Camera2D.zoom");
    result.zoom = LuaGetArgument_float(L, -1);
    lua_pop(L, 4);
    return result;
}
static Camera2D LuaGetArgument_Camera2D ( lua_State * L , int index ) { Camera2D result = { 0 } ; index = lua_absindex ( L , index ) ; luaL_argcheck ( L , lua_getfield ( L , index , " " ) == LUA_TNUMBER , index , " " ) ; result . offset = LuaGetArgument_Vector2 ( L , -1 ) ; luaL_argcheck ( L , lua_getfield ( L , index , " " ) == LUA_TNUMBER , index , " " ) ; result . target = LuaGetArgument_Vector2 ( L , -1 ) ; luaL_argcheck ( L , lua_getfield ( L , index , " " ) == LUA_TNUMBER , index , " " ) ; result . rotation = LuaGetArgument_float ( L , -1 ) ; luaL_argcheck ( L , lua_getfield ( L , index , " " ) == LUA_TNUMBER , index , " " ) ; result . zoom = LuaGetArgument_float ( L , -1 ) ; lua_pop ( L , 4 ) ; return result ; }
Camera2D type, defines a 2d camera
Camera2D type defines a 2d camera
// Makes sure we use absolute indices because we push multiple values