|
hx3d
1
2D/3D Simple Game Framework
|
SDL2 application implementation. More...
#include <sdl2_application.hpp>
Public Member Functions | |
| SDL2Application (ApplicationConfig config) | |
| Create a SDL2 window. More... | |
| virtual void | start (const Ptr< Game > &game) override |
| Start the window. More... | |
Public Member Functions inherited from hx3d::window::Application | |
| Application (ApplicationConfig config) | |
| Create a window. More... | |
| int | getWidth () |
| Get the window width. More... | |
| int | getHeight () |
| Get the window height. More... | |
| glm::ivec2 | getSize () |
| Get the window size (ivec2) More... | |
| float | getFPS () |
| Get the current frames per second (FPS) More... | |
| float | getElapsedTime () |
| Get the elapsed time in seconds since the application start. Reset after one hour. More... | |
Additional Inherited Members | |
Protected Attributes inherited from hx3d::window::Application | |
| Ptr< Game > | _game |
| Game pointer. | |
| bool | _running |
| Is the application running ? | |
| int | _width |
| Application width. | |
| int | _height |
| Application height. | |
| unsigned int | _fpsLimit |
| FPS limit. | |
| std::string | _title |
| Application title. | |
| bool | _fullscreen |
| Is the application in fullscreen ? | |
| float | _currentFPS |
| Current FPS. | |
| float | _elapsedTime |
| Elapsed time since the beginning. | |
SDL2 application implementation.
Definition at line 36 of file sdl2_application.hpp.
| hx3d::window::SDL2Application::SDL2Application | ( | ApplicationConfig | config | ) |
Create a SDL2 window.
| config | Configuration |
Definition at line 49 of file sdl2_application.cpp.
Start the window.
| game | Game (Ptr) |
Implements hx3d::window::Application.
Definition at line 76 of file sdl2_application.cpp.
1.8.11