Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //.cpp
- void glApp::handleFramebufferResize(int width, int height)
- {
- glViewport(0, 0, width, height);
- //Imgui menues
- menuWidth = width;
- menuHieght = height;
- MASH_cout << menuWidth;
- }
- void glApp::framebuffer_size_callback(GLFWwindow* window, int width, int height)
- {
- std::cout << "Framebuffer size changed: " << width << "x" << height << std::endl;
- glApp* app = static_cast<glApp*>(glfwGetWindowUserPointer(window));
- if (app) {
- app->handleFramebufferResize(width, height);
- }
- }
- //.h
- void handleFramebufferResize(int, int);
- static void framebuffer_size_callback(GLFWwindow*, int, int);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement