Inject GLFW shell and move Win32 key map
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user