add 'cursor' ui property

This commit is contained in:
MihailRis
2024-12-30 21:41:05 +03:00
parent 10f0bd0290
commit cb9690ebc7
14 changed files with 144 additions and 1 deletions
+4
View File
@@ -5,6 +5,7 @@
#include <stack>
#include <vector>
#include "graphics/core/commons.hpp"
#include "typedefs.hpp"
class ImageData;
@@ -20,6 +21,7 @@ class Window {
static bool fullscreen;
static int framerate;
static double prevSwap;
static CursorShape cursor;
static bool tryToMaximize(GLFWwindow* window, GLFWmonitor* monitor);
public:
@@ -46,6 +48,8 @@ public:
static void popScissor();
static void resetScissor();
static void setCursor(CursorShape shape);
static void clear();
static void clearDepth();
static void setBgColor(glm::vec3 color);