#include <GameBase.h>
Public Member Functions | |
GLvoid | init (GLvoid) |
GLvoid | reshape (GLsizei width, GLsizei height) |
GLvoid | update (GLvoid) |
GLvoid | destroy (GLvoid) |
Protected Member Functions | |
virtual GLvoid | initGame (GLvoid)=0 |
virtual GLvoid | reshapeGame (GLsizei width, GLsizei height)=0 |
virtual GLvoid | updateGame (GLuint time)=0 |
virtual GLvoid | destroyGame (GLvoid)=0 |
GLvoid ES3D::GameBase::destroy | ( | GLvoid | ) |
Destroys the game and frees all resources.
virtual GLvoid ES3D::GameBase::destroyGame | ( | GLvoid | ) | [protected, pure virtual] |
Destroys the game.
GLvoid ES3D::GameBase::init | ( | GLvoid | ) |
Inits the game.
virtual GLvoid ES3D::GameBase::initGame | ( | GLvoid | ) | [protected, pure virtual] |
Callback method for initializing everything.
GLvoid ES3D::GameBase::reshape | ( | GLsizei | width, | |
GLsizei | height | |||
) |
Resizes the current screen.
width | the width | |
height | the height |
virtual GLvoid ES3D::GameBase::reshapeGame | ( | GLsizei | width, | |
GLsizei | height | |||
) | [protected, pure virtual] |
Callback method when the screen is resized.
width | the new width | |
height | the new height |
GLvoid ES3D::GameBase::update | ( | GLvoid | ) |
Updates the game. Call this method in every loop.
virtual GLvoid ES3D::GameBase::updateGame | ( | GLuint | time | ) | [protected, pure virtual] |
Updates the game scene with the given time.
time | the time elapsed since last frame |