Inject GLFW shell and move Win32 key map

This commit is contained in:
2026-06-17 10:53:51 +02:00
parent 59a9074109
commit 0a7961d8b3
10 changed files with 95 additions and 60 deletions

View File

@@ -199,14 +199,16 @@ void main_loop()
int main()
{
g_platform_services = pp::platform::legacy::create_platform_services();
g_web_platform_services = pp::platform::legacy::create_legacy_web_platform_services();
if (glfwInit() != GL_TRUE)
printf("Failed to init GLFW");
wnd = glfwCreateWindow(1024, 768, "PanoPainter", nullptr, nullptr);
pp::platform::legacy::set_legacy_glfw_window(wnd);
pp::platform::legacy::acquire_legacy_glfw_render_context();
g_platform_services = pp::platform::legacy::create_platform_services({
.acquire_render_context = [wnd] { glfwMakeContextCurrent(wnd); },
.present_render_context = [wnd] { glfwSwapBuffers(wnd); },
});
g_web_platform_services = pp::platform::legacy::create_legacy_web_platform_services();
glfwMakeContextCurrent(wnd);
/*
glfwSetCursorPosCallback(wnd, [](GLFWwindow* wnd, double x, double y){