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_hint();
set_window(); set_window();
set_graphic_context(); 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_pointer();
set_key_callback(); set_key_callback();
set_mouse_callback(); set_mouse_callback();

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "utils/utils.hpp" #include "utils/utils.hpp" // IWYU pragma: keep
namespace VE namespace VE
{ {

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "utils/utils.hpp" #include "utils/utils.hpp" // IWYU pragma: keep
#include "glfw/glfw.hpp" #include "glfw/glfw.hpp"
namespace VE namespace VE

View File

@ -8,7 +8,7 @@
#include "icons.hpp" #include "icons.hpp"
#include "utils/utils.hpp" #include "utils/utils.hpp" // IWYU pragma: keep
namespace VE::style::fonts namespace VE::style::fonts
{ {

View File

@ -716,4 +716,4 @@ namespace VE::style::icon
inline const char* ICON_DOGMAZIC = "\uf303"; inline const char* ICON_DOGMAZIC = "\uf303";
inline const char* ICON_NEXTCLOUD = "\uf306"; inline const char* ICON_NEXTCLOUD = "\uf306";
inline const char* ICON_NEXTCLOUD_SQUARE = "\uf307"; inline const char* ICON_NEXTCLOUD_SQUARE = "\uf307";
} // namespace Icon }

View File

@ -2,7 +2,7 @@
#include "imgui.h" #include "imgui.h"
#include "icons.hpp" #include "icons.hpp" // IWYU pragma: keep
#include "fonts.hpp" #include "fonts.hpp"
namespace VE::style namespace VE::style

View File

@ -1,19 +1,19 @@
#pragma once #pragma once
#include <functional> #include <functional> // IWYU pragma: keep
#include <memory> #include <memory> // IWYU pragma: keep
#include <string> #include <string> // IWYU pragma: keep
#include <any> #include <any> // IWYU pragma: keep
#include <map> #include <map> // IWYU pragma: keep
#include <thread> #include <thread> // IWYU pragma: keep
#include <future> #include <future> // IWYU pragma: keep
#include <fstream> #include <fstream> // IWYU pragma: keep
#include <numeric> #include <numeric> // IWYU pragma: keep
#include <filesystem> #include <filesystem> // IWYU pragma: keep
/* /*
Если первым включен glad Если первым включен glad
то происход ругание на то что уже есть glad то происходит ругание на то, что уже есть glad
и тут есть два пути исправления и тут есть два пути исправления
первый первый
#define GLFW_INCLUDE_NONE #define GLFW_INCLUDE_NONE
@ -22,10 +22,10 @@
второй это поставить glad первым второй это поставить glad первым
*/ */
#include "glad.h" #include "glad.h" // IWYU pragma: keep
#include "GLFW/glfw3.h" #include "GLFW/glfw3.h" // IWYU pragma: keep
#include "hack/logger/logger.hpp" #include "hack/logger/logger.hpp" // IWYU pragma: keep
#include "hack/utils/singleton.hpp" #include "hack/utils/singleton.hpp" // IWYU pragma: keep
#include "imgui.h" #include "imgui.h" // IWYU pragma: keep
#include "imgui_impl_glfw.h" #include "imgui_impl_glfw.h" // IWYU pragma: keep
#include "imgui_impl_opengl3.h" #include "imgui_impl_opengl3.h" // IWYU pragma: keep

View File

@ -1,9 +1,9 @@
#pragma once #pragma once
#include "define.hpp" #include "define.hpp" // IWYU pragma: keep
#include "keycode.hpp" #include "keycode.hpp" // IWYU pragma: keep
#include "time.hpp" #include "time.hpp" // IWYU pragma: keep
#include "var.hpp" #include "var.hpp" // IWYU pragma: keep
#include "include.hpp" #include "include.hpp" // IWYU pragma: keep
#include "using.hpp" #include "using.hpp" // IWYU pragma: keep
#include "math.hpp" #include "math.hpp" // IWYU pragma: keep

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "include.hpp" #include "include.hpp" // IWYU pragma: keep
namespace VE::var namespace VE::var
{ {