#include <Game.hpp>
Definition at line 14 of file Game.hpp.
◆ Game()
◆ ~Game()
◆ system_container()
◆ geometry()
◆ render_target()
◆ game_geometryChanged()
◆ game_draw()
virtual void iv::Game::game_draw |
( |
| ) |
|
|
protectedpure virtual |
◆ game_focusLost()
virtual void iv::Game::game_focusLost |
( |
| ) |
|
|
protectedpure virtual |
Application lost focus, meaning mostly input focus. Game should get automatically paused.
◆ game_input()
virtual bool iv::Game::game_input |
( |
Input const * |
input | ) |
|
|
protectedpure virtual |
Returns true if input was processed (used for example on emscripten to determine if input was consumed by application or should be passed to web browser for further processing).
◆ input()
bool iv::Game::input |
( |
Input const * |
input | ) |
|
|
overrideprotectedvirtual |
◆ focus_lost()
void iv::Game::focus_lost |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ update()
void iv::Game::update |
( |
uint64_t |
delta_ms | ) |
|
|
overrideprotectedvirtual |
◆ extra_update()
bool iv::Game::extra_update |
( |
| ) |
|
|
overrideprotectedvirtual |
When there is some extra time remaining in the frame, this will be called. Returns true if someting was done so that window will consider calling it again in the same frame.
Implements iv::WindowListener.
Definition at line 198 of file Game.cpp.
◆ draw()
◆ gpu()
void iv::Game::gpu |
( |
bool |
enabled, |
|
|
bool |
dropped |
|
) |
| |
|
overrideprotectedvirtual |
◆ resized()
Called when window size is changed. Not called on app init (only when window size is changed). Physical resolution is winsize * pixel_density. Uusal values for pixel_density are: LDPI: 0.75 MDPI: 1.0 HDPI: 1.5 XHDPI: 2.0 XXHDPI: 3.0 XXXHDPI: 4.0
Implements iv::WindowListener.
Definition at line 192 of file Game.cpp.
The documentation for this class was generated from the following files: