4 #include <SFML/Graphics.hpp>
24 Engine(
int width,
int height, std::string title);
39 const float dt = 1.0f / 60.0f;
void run()
Definition: Engine.cpp:12
Engine(int width, int height, std::string title)
Definition: Engine.cpp:5
const float dt
The target frame time in seconds (target of 60fps)
Definition: Engine.hpp:39
sf::Clock clock
The gameloop clock.
Definition: Engine.hpp:41
sf::RenderWindow window
The render window object.
Definition: Engine.hpp:43
sf::Vector2i winSize
Size of the window in x & y.
Definition: Engine.hpp:45
Definition: Engine.hpp:15
std::shared_ptr< Scene > scene
Definition: Engine.hpp:31