Changeset a0da009 in opengl-game for game-gui-glfw.cpp


Ignore:
Timestamp:
Oct 1, 2019, 2:48:30 AM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
40995d3
Parents:
fa9fa1c
Message:

Add a window resize callback in gamegui and add an unknown event type for events that aren't currently handeld

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-glfw.cpp

    rfa9fa1c 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.