51 virtual void Update(
float deltaTime) = 0;
72 bool m_needsToBeClosed =
false;
Interface that every runnable game or lab must implement.
virtual bool Init()=0
Called once by Engine::Init() after the GL context is ready.
bool NeedsToBeClosed() const
Returns true when the application has requested shutdown. Engine::Run() checks this each frame to kno...
virtual void Update(float deltaTime)=0
Called every frame by Engine::Run() with the elapsed time.
void SetNeedsToBeClosed(bool value)
Request the engine to stop after the current frame.
virtual void RegisterTypes()=0
virtual void Destroy()=0
Called by Engine::Destroy() before the GL context is torn down. Release GPU resources (meshes,...