Changeset 7bf5433 in opengl-game for opengl-game.cpp


Ignore:
Timestamp:
Sep 12, 2019, 5:23:28 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
d2f607c
Parents:
27c40ce
Message:

Create a new OpenGLGame project for a refactor of the original OpenGL game to make copying its logic over to the Vulkan implementation easier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • opengl-game.cpp

    r27c40ce r7bf5433  
    5757
    5858void OpenGLGame::mainLoop() {
     59   //MouseEvent e;
     60
    5961   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
    6074      glfwPollEvents();
    6175
Note: See TracChangeset for help on using the changeset viewer.