mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
20 lines
498 B
C++
20 lines
498 B
C++
#ifndef WINDOW_WINDOW_H_
|
|
#define WINDOW_WINDOW_H_
|
|
|
|
class GLFWwindow;
|
|
|
|
class Window {
|
|
public:
|
|
static int width;
|
|
static int height;
|
|
static GLFWwindow* window; // не лучшее решение делать window публичным
|
|
static int initialize(int width, int height, const char* title);
|
|
static void terminate();
|
|
|
|
static void setCursorMode(int mode);
|
|
static bool isShouldClose();
|
|
static void setShouldClose(bool flag);
|
|
static void swapBuffers();
|
|
};
|
|
|
|
#endif /* WINDOW_WINDOW_H_ */
|