11#include <smk/RenderTarget.hpp>
37 GLFWwindow*
window()
const;
65 GLFWwindow* window_ =
nullptr;
69 float time_last_sleep_ = 0.f;
71 void UpdateDimensions();
73 std::unique_ptr<InputImpl> input_;
76 std::string module_canvas_selector_;
int height() const
the height of the surface.
int width() const
the width of the surface.
A window. You can draw objects on the window.
void ExecuteMainLoop(const std::function< void(void)> &loop)
Helper function. Execute the main loop of the application. On web based application: registers the lo...
void PoolEvents()
Handle all the new input events. This update the input() object.
bool ShouldClose()
Returns true when the user wants to close the window.
void Display()
Present what has been draw to the screen.
void ExecuteMainLoopUntil(const std::function< bool(void)> &loop)
Helper function. Execute the main loop of the application. On web based application: registers the lo...
float time() const
The last time Window::PoolEvent() was called.
GLFWwindow * window() const
The window handle.
Input & input()
Return an object for querying the input state.
void LimitFrameRate(float fps)