fix some setup

This commit is contained in:
chatlanin
2025-01-13 21:30:05 +03:00
parent a658789a95
commit d39c0bbce9
9 changed files with 43 additions and 31 deletions

View File

@@ -29,6 +29,18 @@ namespace VE
set_hint();
set_window();
set_graphic_context();
unsigned char pixels[9 * 9 * 4];
memset(pixels, 0xff, sizeof(pixels));
GLFWimage image;
image.width = 9;
image.height = 9;
image.pixels = pixels;
GLFWcursor* cursor = glfwCreateCursor(&image, 0, 0);
glfwSetCursor(m_win, cursor);
set_pointer();
set_key_callback();
set_mouse_callback();