#include <Engine.hpp>
Public Member Functions | |
| Engine (int width, int height, std::string title) | |
| void | run () |
Public Attributes | |
| std::shared_ptr< Scene > | scene |
Private Attributes | |
| const float | dt = 1.0f / 60.0f |
| The target frame time in seconds (target of 60fps) | |
| sf::Clock | clock |
| The gameloop clock. | |
| sf::RenderWindow | window |
| The render window object. | |
| sf::Vector2i | winSize |
| Size of the window in x & y. | |
The base "game" engine. This manages the update & draw loops, and creates the render window to be used in a scene.
| Geno3D::Engine::Engine | ( | int | width, |
| int | height, | ||
| std::string | title | ||
| ) |
| void Geno3D::Engine::run | ( | ) |
| std::shared_ptr<Scene> Geno3D::Engine::scene |
1.8.6