| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- class "SceneManager"
- function SceneManager:SceneManager(...)
- for k,v in pairs(arg) do
- if type(v) == "table" then
- if v.__ptr ~= nil then
- arg[k] = v.__ptr
- end
- end
- end
- if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
- self.__ptr = Polycore.SceneManager(unpack(arg))
- end
- end
- function SceneManager:addScene(newScene)
- local retVal = Polycore.SceneManager_addScene(self.__ptr, newScene.__ptr)
- end
- function SceneManager:Update()
- local retVal = Polycore.SceneManager_Update(self.__ptr)
- end
- function SceneManager:UpdateVirtual()
- local retVal = Polycore.SceneManager_UpdateVirtual(self.__ptr)
- end
- function SceneManager:removeScene(scene)
- local retVal = Polycore.SceneManager_removeScene(self.__ptr, scene.__ptr)
- end
- function SceneManager:registerRenderTexture(r_enderTexture)
- local retVal = Polycore.SceneManager_registerRenderTexture(self.__ptr, r_enderTexture.__ptr)
- end
|