Changeset 40995d3 in opengl-game for game-gui-glfw.cpp


Ignore:
Timestamp:
Oct 1, 2019, 3:14:06 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
4d84c72
Parents:
7563b8a (diff), a0da009 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of medievaltech.com:opengl-game

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-glfw.cpp

    r7563b8a r40995d3  
    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.