Building Game Engines
|
#include <Engine.hpp>
Public Member Functions | |
Engine () | |
~Engine () | |
void | Input (bool *quit) |
void | Update () |
void | Render () |
void | MainGameLoop () |
void | Start () |
void | Shutdown () |
bool | getDoQuit () |
void | InitializeGraphicsSubSystem () |
The main game engine
Engine::Engine | ( | ) |
Constructor
Engine::~Engine | ( | ) |
Destructor
bool Engine::getDoQuit | ( | ) |
sees if we need to quit the game
void Engine::InitializeGraphicsSubSystem | ( | ) |
Initializes the graphics subsystems
void Engine::Input | ( | bool * | quit | ) |
Checks for user input. Quit is whether or not the game has received a quit command.
void Engine::MainGameLoop | ( | ) |
The main game loop that runs until a quit operation occurs
void Engine::Render | ( | ) |
Renders each game object in the game
void Engine::Shutdown | ( | ) |
Shuts down the game engine
void Engine::Start | ( | ) |
Starts and initializes variables in the game engine
void Engine::Update | ( | ) |
Updates each game object in the game