43 #include <glm/glm.hpp> 44 #include <glm/gtc/matrix_transform.hpp> 45 #include <glm/gtx/string_cast.hpp> 49 using namespace audio;
50 using namespace components;
51 using namespace graphics;
52 using namespace physics;
53 using namespace utils;
68 unsigned int m_FramesPerSecond;
70 unsigned int m_UpdatePerSecond;
72 Fireworks() : m_FramesPerSecond(0), m_UpdatePerSecond(0) { }
103 virtual void init() = 0;
109 virtual void render() = 0;
114 inline const unsigned int getFPS() {
return m_FramesPerSecond; }
120 inline const unsigned int getUPS() {
return m_UpdatePerSecond; }
The Game class to use the Fireworks Engine.
Definition: fireworks.h:60
virtual void update()
Runs 60 times per second.
Definition: fireworks.h:107
Fireworks()
Definition: fireworks.h:72
Timer class to keep track of the time.
Definition: timer.h:8
const unsigned int getUPS()
A function to get the current UPS : Updates per second .
Definition: fireworks.h:120
Definition: audioclip.cpp:3
const unsigned int getFPS()
A function to get the current FPS : Frames per second .
Definition: fireworks.h:114
void start()
A function that starts the main game loop.
Definition: fireworks.h:96
The class responsible for Window Creation.
Definition: Window.h:168
virtual ~Fireworks()
Definition: fireworks.h:74
virtual void tick()
Runs once per second.
Definition: fireworks.h:105
graphics::Window * createWindow(const char *name, int width, int height)
A function to create the Main Window.
Definition: fireworks.h:87