|
|
@@ -37,7 +37,6 @@ void luaRegister_Scene()
|
|
|
{"setActiveCamera", lua_Scene_setActiveCamera},
|
|
|
{"setAmbientColor", lua_Scene_setAmbientColor},
|
|
|
{"setId", lua_Scene_setId},
|
|
|
- {"update", lua_Scene_update},
|
|
|
{"visit", lua_Scene_visit},
|
|
|
{NULL, NULL}
|
|
|
};
|
|
|
@@ -1101,42 +1100,6 @@ int lua_Scene_static_load(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Scene_update(lua_State* state)
|
|
|
-{
|
|
|
- // Get the number of parameters.
|
|
|
- int paramCount = lua_gettop(state);
|
|
|
-
|
|
|
- // Attempt to match the parameters to a valid binding.
|
|
|
- switch (paramCount)
|
|
|
- {
|
|
|
- case 2:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TNUMBER)
|
|
|
- {
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- float param1 = (float)luaL_checknumber(state, 2);
|
|
|
-
|
|
|
- Scene* instance = getInstance(state);
|
|
|
- instance->update(param1);
|
|
|
-
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Scene_update - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- default:
|
|
|
- {
|
|
|
- lua_pushstring(state, "Invalid number of parameters (expected 2).");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
int lua_Scene_visit(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|