update some libs and fix opengl info

This commit is contained in:
2025-09-21 22:54:11 +03:00
parent 27c2e00faa
commit adbffacd40
8 changed files with 44 additions and 40 deletions

View File

@@ -30,7 +30,7 @@ namespace VE
hack::exception ex; hack::exception ex;
ex.service(e.what()); ex.service(e.what());
ex.description("dont convert type any_cast"); ex.description("dont convert type any_cast");
ex.log(); hack::error()(ex);
throw ex; throw ex;
} }

View File

@@ -1,5 +1,7 @@
#include "context.hpp" #include "context.hpp"
#include "vertex_engine/utils/define.hpp" // IWYU pragma: keep
namespace VE namespace VE
{ {
context::context(GLFWwindow* w) : m_win { w } context::context(GLFWwindow* w) : m_win { w }
@@ -7,12 +9,12 @@ namespace VE
glfwMakeContextCurrent(m_win); glfwMakeContextCurrent(m_win);
int status = gladLoadGLLoader((GLADloadproc)glfwGetProcAddress); int status = gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
hack::log(": ")("Glad loader status", status == 1 ? "Load" : "UNLOAD"); hack::log()("Glad loader status:", status == 1 ? "Load" : "UNLOAD");
hack::log(": ")("OpenGL Info"); hack::log()("OpenGL Info:");
hack::log(": ")(" Vendor", glGetString(GL_VENDOR)); hack::log()(" Vendor:", VE_GLGETSTRING(GL_VENDOR));
hack::log(": ")(" Renderer", glGetString(GL_RENDERER)); hack::log()(" Renderer:", VE_GLGETSTRING(GL_RENDERER));
hack::log(": ")(" Version", glGetString(GL_VERSION)); hack::log()(" Version:", VE_GLGETSTRING(GL_VERSION));
hack::log(": ")(" GLSL Version", glGetString(GL_SHADING_LANGUAGE_VERSION)); hack::log()(" GLSL Version:", VE_GLGETSTRING(GL_SHADING_LANGUAGE_VERSION));
glfwSwapInterval(1); glfwSwapInterval(1);

View File

@@ -16,7 +16,7 @@ namespace VE
glfw::~glfw() glfw::~glfw()
{ {
hack::warn(": ")("Destroy glfw window", m_win_data.m_name); hack::warn()("Destroy glfw window:", m_win_data.m_name);
glfwDestroyWindow(m_win); glfwDestroyWindow(m_win);
glfwTerminate(); glfwTerminate();
} }
@@ -67,9 +67,9 @@ namespace VE
glfwGetWindowSize(m_win, &m_win_data.m_width, &m_win_data.m_height); glfwGetWindowSize(m_win, &m_win_data.m_width, &m_win_data.m_height);
hack::log(": ")("Created glfw window", m_win_data.m_name); hack::log()("Created glfw window:", m_win_data.m_name);
hack::log(" = ")(" width", m_win_data.m_width); hack::log()(" width =", m_win_data.m_width);
hack::log(" = ")(" height", m_win_data.m_height); hack::log()(" height =", m_win_data.m_height);
} }
void glfw::set_graphic_context() void glfw::set_graphic_context()

View File

@@ -112,10 +112,10 @@ namespace VE
if (compale == GL_FALSE) if (compale == GL_FALSE)
{ {
glGetShaderInfoLog(shader, 1024, NULL, info); glGetShaderInfoLog(shader, 1024, NULL, info);
hack::error("")("shader compale error: ", type_to_name(type), info); hack::error()("shader compale error:", type_to_name(type), info);
return true; return true;
} }
hack::log("")("shader compale is good: ", type_to_name(type)); hack::log()("shader compale is good:", type_to_name(type));
return false; return false;
} }
} }

View File

@@ -21,3 +21,4 @@
#define VE_NAME(n) VE::func::name(n).data() #define VE_NAME(n) VE::func::name(n).data()
#define VE_COLOR(c, t) VE::func::color(c, t) #define VE_COLOR(c, t) VE::func::color(c, t)
#define VE_GLGETSTRING(n) reinterpret_cast<const char*>(glGetString(n))

18
subprojects/glfw.wrap Executable file → Normal file
View File

@@ -1,13 +1,13 @@
[wrap-file] [wrap-file]
directory = glfw-3.3.7 directory = glfw-3.4
source_url = https://github.com/glfw/glfw/archive/refs/tags/3.3.7.tar.gz source_url = https://github.com/glfw/glfw/archive/refs/tags/3.4.tar.gz
source_filename = glfw-3.3.7.tar.gz source_filename = glfw-3.4.tar.gz
source_hash = fd21a5f65bcc0fc3c76e0f8865776e852de09ef6fbc3620e09ce96d2b2807e04 source_hash = c038d34200234d071fae9345bc455e4a8f2f544ab60150765d7704e08f3dac01
patch_filename = glfw_3.3.7-1_patch.zip patch_filename = glfw_3.4-1_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/glfw_3.3.7-1/get_patch patch_url = https://wrapdb.mesonbuild.com/v2/glfw_3.4-1/get_patch
patch_hash = cfc19fedadd1492f1bcf4a7e7604c81398571a696f94f3d18992060caf6b7057 patch_hash = 58a6a6cdb28195d7f7e6f5de85dff7044d378e49b46bf1d4a9b04c97ed93e6b0
wrapdb_version = 3.3.7-1 source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/glfw_3.4-1/glfw-3.4.tar.gz
wrapdb_version = 3.4-1
[provide] [provide]
glfw3 = glfw_dep glfw3 = glfw_dep

17
subprojects/glm.wrap Executable file → Normal file
View File

@@ -1,12 +1,13 @@
[wrap-file] [wrap-file]
directory = glm-0.9.9.8 directory = glm-1.0.1
source_url = https://github.com/g-truc/glm/archive/0.9.9.8.tar.gz source_url = https://github.com/g-truc/glm/archive/refs/tags/1.0.1.tar.gz
source_filename = 0.9.9.8.tar.gz source_filename = glm-1.0.1.tar.gz
source_hash = 7d508ab72cb5d43227a3711420f06ff99b0a0cb63ee2f93631b162bfe1fe9592 source_hash = 9f3174561fd26904b23f0db5e560971cbf9b3cbda0b280f04d5c379d03bf234c
patch_url = https://wrapdb.mesonbuild.com/v2/glm_0.9.9.8-2/get_patch patch_filename = glm_1.0.1-1_patch.zip
patch_filename = glm-0.9.9.8-2-wrap.zip patch_url = https://wrapdb.mesonbuild.com/v2/glm_1.0.1-1/get_patch
patch_hash = d930a1fcd3a28d84be4e92cc4c71ff59e170a1ebbd3dbfce631eba19e478d83d patch_hash = 25679275e26bc4c36bb617d1b4a52197039402af828d2a4bf67b3c0260a5df6a
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/glm_1.0.1-1/glm-1.0.1.tar.gz
wrapdb_version = 1.0.1-1
[provide] [provide]
glm = glm_dep glm = glm_dep

View File

@@ -3,11 +3,11 @@ directory = imgui-1.91.6
source_url = https://github.com/ocornut/imgui/archive/refs/tags/v1.91.6.tar.gz source_url = https://github.com/ocornut/imgui/archive/refs/tags/v1.91.6.tar.gz
source_filename = imgui-1.91.6.tar.gz source_filename = imgui-1.91.6.tar.gz
source_hash = c5fbc5dcab1d46064001c3b84d7a88812985cde7e0e9ced03f5677bec1ba502a source_hash = c5fbc5dcab1d46064001c3b84d7a88812985cde7e0e9ced03f5677bec1ba502a
patch_filename = imgui_1.91.6-2_patch.zip patch_filename = imgui_1.91.6-3_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/imgui_1.91.6-2/get_patch patch_url = https://wrapdb.mesonbuild.com/v2/imgui_1.91.6-3/get_patch
patch_hash = 515e31b18e3928aafce2c62c94fa6d8426f5132e9c3f2d9951b7e96b6381f33a patch_hash = 2f7977114ba07d06559aaf8890a92a4ebd25186592d4447954605aaf2244634d
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/imgui_1.91.6-2/imgui-1.91.6.tar.gz source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/imgui_1.91.6-3/imgui-1.91.6.tar.gz
wrapdb_version = 1.91.6-2 wrapdb_version = 1.91.6-3
[provide] [provide]
imgui = imgui_dep imgui = imgui_dep