Changes in game-gui-glfw.cpp [f133da0:a0da009] in opengl-game


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-glfw.cpp

    rf133da0 ra0da009  
    6666   glfwSetMouseButtonCallback(window, glfw_mouse_button_callback);
    6767   glfwSetKeyCallback(window, glfw_key_callback);
     68   glfwSetWindowSizeCallback(window, glfw_window_size_callback);
    6869}
    6970
     
    151152   GameGui_GLFW::s_events.push(e);
    152153}
     154
     155void glfw_window_size_callback(GLFWwindow* window, int width, int height) {
     156   UIEvent e;
     157   e.type = UI_EVENT_WINDOWRESIZE;
     158
     159   GameGui_GLFW::s_events.push(e);
     160}
Note: See TracChangeset for help on using the changeset viewer.