mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add framerate control (WIP)
This commit is contained in:
parent
664faf35e9
commit
a856b4f140
6 changed files with 29 additions and 8 deletions
|
|
@ -19,6 +19,8 @@ class Window {
|
|||
static std::stack<glm::vec4> scissorStack;
|
||||
static glm::vec4 scissorArea;
|
||||
static bool fullscreen;
|
||||
static int framerate;
|
||||
static double prevSwap;
|
||||
|
||||
static bool tryToMaximize(GLFWwindow* window, GLFWmonitor* monitor);
|
||||
public:
|
||||
|
|
@ -34,7 +36,7 @@ public:
|
|||
static bool isShouldClose();
|
||||
static void setShouldClose(bool flag);
|
||||
static void swapBuffers();
|
||||
static void swapInterval(int interval);
|
||||
static void setFramerate(int interval);
|
||||
static void toggleFullscreen();
|
||||
static bool isFullscreen();
|
||||
static bool isMaximized();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue