Changeset 7bf5433 in opengl-game for opengl-game.cpp
- Timestamp:
- Sep 12, 2019, 5:23:28 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- d2f607c
- Parents:
- 27c40ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
opengl-game.cpp
r27c40ce r7bf5433 57 57 58 58 void OpenGLGame::mainLoop() { 59 //MouseEvent e; 60 59 61 while (!glfwWindowShouldClose(window)) { 62 /* 63 gui->processEvents(); 64 65 if (gui->getKeyEvent(GLFW_KEY_ESCAPE) == RTWO_KEY_EVENT_PRESSED) { 66 glfwSetWindowShouldClose(window, 1); 67 } 68 69 while (gui->pollMouseEvent(&e)) { 70 cout << "Mouse click detected at (" << e.x << ", " << e.y << ")" << endl; 71 } 72 */ 73 60 74 glfwPollEvents(); 61 75
Note:
See TracChangeset
for help on using the changeset viewer.