mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
GLFW-related update & -lstdc++fs
This commit is contained in:
parent
bfc7c85856
commit
086f04af39
5 changed files with 71 additions and 6 deletions
|
|
@ -2,11 +2,17 @@
|
|||
#define WINDOW_WINDOW_H_
|
||||
|
||||
#include "../typedefs.h"
|
||||
#include <stack>
|
||||
#include <vector>
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
class GLFWwindow;
|
||||
|
||||
class Window {
|
||||
static GLFWwindow* window;
|
||||
static std::stack<glm::vec4> scissorStack;
|
||||
static glm::vec4 scissorArea;
|
||||
public:
|
||||
static uint width;
|
||||
static uint height;
|
||||
|
|
@ -19,6 +25,10 @@ public:
|
|||
static void setShouldClose(bool flag);
|
||||
static void swapBuffers();
|
||||
static void swapInterval(int interval);
|
||||
|
||||
static void pushScissor(glm::vec4 area);
|
||||
static void popScissor();
|
||||
static void resetScissor();
|
||||
};
|
||||
|
||||
#endif /* WINDOW_WINDOW_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue