21 #ifndef HX3D_WINDOW_APPLICATION 22 #define HX3D_WINDOW_APPLICATION 24 #include "hx3d/window/application_config.hpp" 25 #include "hx3d/utils/ptr.hpp" 28 #include <glm/vec2.hpp> unsigned int _fpsLimit
FPS limit.
Application configuration.
bool _fullscreen
Is the application in fullscreen ?
Application(ApplicationConfig config)
Create a window.
int _width
Application width.
virtual void start(const Ptr< Game > &game)=0
Start the window.
bool _running
Is the application running ?
glm::ivec2 getSize()
Get the window size (ivec2)
Ptr< Game > _game
Game pointer.
int _height
Application height.
float _elapsedTime
Elapsed time since the beginning.
float getElapsedTime()
Get the elapsed time in seconds since the application start. Reset after one hour.
std::string _title
Application title.
float getFPS()
Get the current frames per second (FPS)
float _currentFPS
Current FPS.
int getHeight()
Get the window height.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.
int getWidth()
Get the window width.