8 #ifndef APPLICATION_HPP 9 #define APPLICATION_HPP 11 #include "SimpleGL_Export.h" 61 virtual void handleEvents(std::vector<Event*> events) = 0;
68 virtual void updateScene(
float delta) = 0;
71 virtual void clear() = 0;
78 virtual void renderScene(
float alpha) = 0;
81 virtual void dispose();
93 static double lastLoopTime;
96 static float timeCount;
122 static double getTime();
129 static float getDelta();
132 static void update();
135 static void incFPS();
138 static void incUPS();
159 static double getLastLoopTime();
Window * window
The window of this application.
This class provides a basic GLFW window.
Generic namespace for the SimpleGL framework.
SIMPLEGL_EXPORT void init()
Initializes SimpleGL and should be called before anything else.
int targetUps
Stores the desired UPS.
bool running
Tells if the application is running.
This class contains static methods for time calculations.
This is the base class for an application.
int targetFps
Stores the desired FPS.