fix some setup
This commit is contained in:
parent
a658789a95
commit
d39c0bbce9
@ -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();
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "utils/utils.hpp"
|
||||
#include "utils/utils.hpp" // IWYU pragma: keep
|
||||
|
||||
namespace VE
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "utils/utils.hpp"
|
||||
#include "utils/utils.hpp" // IWYU pragma: keep
|
||||
#include "glfw/glfw.hpp"
|
||||
|
||||
namespace VE
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include "icons.hpp"
|
||||
|
||||
#include "utils/utils.hpp"
|
||||
#include "utils/utils.hpp" // IWYU pragma: keep
|
||||
|
||||
namespace VE::style::fonts
|
||||
{
|
||||
|
@ -716,4 +716,4 @@ namespace VE::style::icon
|
||||
inline const char* ICON_DOGMAZIC = "\uf303";
|
||||
inline const char* ICON_NEXTCLOUD = "\uf306";
|
||||
inline const char* ICON_NEXTCLOUD_SQUARE = "\uf307";
|
||||
} // namespace Icon
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "imgui.h"
|
||||
|
||||
#include "icons.hpp"
|
||||
#include "icons.hpp" // IWYU pragma: keep
|
||||
#include "fonts.hpp"
|
||||
|
||||
namespace VE::style
|
||||
|
@ -1,19 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <any>
|
||||
#include <map>
|
||||
#include <thread>
|
||||
#include <future>
|
||||
#include <fstream>
|
||||
#include <numeric>
|
||||
#include <filesystem>
|
||||
#include <functional> // IWYU pragma: keep
|
||||
#include <memory> // IWYU pragma: keep
|
||||
#include <string> // IWYU pragma: keep
|
||||
#include <any> // IWYU pragma: keep
|
||||
#include <map> // IWYU pragma: keep
|
||||
#include <thread> // IWYU pragma: keep
|
||||
#include <future> // IWYU pragma: keep
|
||||
#include <fstream> // IWYU pragma: keep
|
||||
#include <numeric> // IWYU pragma: keep
|
||||
#include <filesystem> // IWYU pragma: keep
|
||||
|
||||
/*
|
||||
Если первым включен glad
|
||||
то происход ругание на то что уже есть glad
|
||||
то происходит ругание на то, что уже есть glad
|
||||
и тут есть два пути исправления
|
||||
первый
|
||||
#define GLFW_INCLUDE_NONE
|
||||
@ -22,10 +22,10 @@
|
||||
второй это поставить glad первым
|
||||
*/
|
||||
|
||||
#include "glad.h"
|
||||
#include "GLFW/glfw3.h"
|
||||
#include "hack/logger/logger.hpp"
|
||||
#include "hack/utils/singleton.hpp"
|
||||
#include "imgui.h"
|
||||
#include "imgui_impl_glfw.h"
|
||||
#include "imgui_impl_opengl3.h"
|
||||
#include "glad.h" // IWYU pragma: keep
|
||||
#include "GLFW/glfw3.h" // IWYU pragma: keep
|
||||
#include "hack/logger/logger.hpp" // IWYU pragma: keep
|
||||
#include "hack/utils/singleton.hpp" // IWYU pragma: keep
|
||||
#include "imgui.h" // IWYU pragma: keep
|
||||
#include "imgui_impl_glfw.h" // IWYU pragma: keep
|
||||
#include "imgui_impl_opengl3.h" // IWYU pragma: keep
|
||||
|
@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "define.hpp"
|
||||
#include "keycode.hpp"
|
||||
#include "time.hpp"
|
||||
#include "var.hpp"
|
||||
#include "include.hpp"
|
||||
#include "using.hpp"
|
||||
#include "math.hpp"
|
||||
#include "define.hpp" // IWYU pragma: keep
|
||||
#include "keycode.hpp" // IWYU pragma: keep
|
||||
#include "time.hpp" // IWYU pragma: keep
|
||||
#include "var.hpp" // IWYU pragma: keep
|
||||
#include "include.hpp" // IWYU pragma: keep
|
||||
#include "using.hpp" // IWYU pragma: keep
|
||||
#include "math.hpp" // IWYU pragma: keep
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "include.hpp"
|
||||
#include "include.hpp" // IWYU pragma: keep
|
||||
|
||||
namespace VE::var
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user