|
hx3d
1
2D/3D Simple Game Framework
|
Application management. More...
#include <application.hpp>
Public Member Functions | |
| Application (ApplicationConfig config) | |
| Create a window. More... | |
| virtual void | start (const Ptr< Game > &game)=0 |
| Start the 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... | |
Protected Attributes | |
| 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. | |
Application management.
Definition at line 42 of file application.hpp.
| hx3d::window::Application::Application | ( | ApplicationConfig | config | ) |
| float hx3d::window::Application::getElapsedTime | ( | ) |
Get the elapsed time in seconds since the application start. Reset after one hour.
Definition at line 51 of file application.cpp.
| float hx3d::window::Application::getFPS | ( | ) |
Get the current frames per second (FPS)
Definition at line 47 of file application.cpp.
| int hx3d::window::Application::getHeight | ( | ) |
| glm::ivec2 hx3d::window::Application::getSize | ( | ) |
| int hx3d::window::Application::getWidth | ( | ) |
1.8.11