Game main class: multiple screens management.
More...
#include <game.hpp>
Game main class: multiple screens management.
Definition at line 42 of file game.hpp.
void hx3d::window::Game::activateStats |
( |
bool |
enabled | ) |
|
Activate the stats.
- Parameters
-
Definition at line 222 of file game.cpp.
ObjectMap & hx3d::window::Game::getSession |
( |
| ) |
|
Get the session.
- Returns
- Session
Definition at line 161 of file game.cpp.
glm::vec2 hx3d::window::Game::getSize |
( |
| ) |
|
Get the current game size.
If a viewport is enabled, return the viewport size. Else, return the application size.
- Returns
- Game size
Definition at line 88 of file game.cpp.
Get the current viewport.
- Returns
- Viewport
Definition at line 84 of file game.cpp.
bool hx3d::window::Game::isRunning |
( |
| ) |
|
Test if the game is running.
- Returns
- True/False
Definition at line 190 of file game.cpp.
void hx3d::window::Game::resize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
virtual |
Resize the current screen.
- Parameters
-
width | New width |
height | New height |
Definition at line 185 of file game.cpp.
void hx3d::window::Game::setScreen |
( |
Ptr< Screen > |
screen | ) |
|
Set the current screen.
- Parameters
-
Definition at line 199 of file game.cpp.
Set the current transition.
- Parameters
-
Definition at line 67 of file game.cpp.
Set the current viewport.
- Parameters
-
Definition at line 71 of file game.cpp.
void hx3d::window::Game::update |
( |
float |
delta | ) |
|
|
virtual |
Update the current screen.
- Parameters
-
Definition at line 165 of file game.cpp.
The documentation for this class was generated from the following files: