#include <JApp.h>
Public Member Functions | |
virtual void | Create ()=0 |
virtual void | Destroy ()=0 |
virtual void | Update ()=0 |
virtual void | Render ()=0 |
virtual void | Pause ()=0 |
virtual void | Resume ()=0 |
virtual void JApp::Create | ( | ) | [pure virtual] |
Initialization function.
virtual void JApp::Destroy | ( | ) | [pure virtual] |
Cleanup function before exiting from the game.
virtual void JApp::Update | ( | ) | [pure virtual] |
Update function to be called for each frame update. Should perform all the game logic here.
void Update() { float dt = JGE::GetInstance()->GetDelta(); mX += mSpeed*dt; }
virtual void JApp::Render | ( | ) | [pure virtual] |
Render function to be called for each frame update. Should do all the game rendering here.
void Render() { JRenderer *r = JRenderer::GetInstance(); r->FillRect(0,0,480,272,ARGB(255,0,0,0)); }
virtual void JApp::Pause | ( | ) | [pure virtual] |
Callback function called when the game is paused by the system.
virtual void JApp::Resume | ( | ) | [pure virtual] |
Callback function called when the game is resumed by the system.