Changeset 27c40ce in opengl-game for vulkan-game.cpp
- Timestamp:
- Sep 12, 2019, 3:29:50 AM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 7bf5433
- Parents:
- 39278a8
- File:
- 
      - 1 edited
 
 - 
          
  vulkan-game.cpp (modified) (3 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      vulkan-game.cppr39278a8 r27c40ce 4 4 5 5 #include "consts.hpp" 6 7 #define GAMEGUI_INCLUDE_VULKAN8 #include "game-gui-sdl.hpp"9 6 10 7 using namespace std; … … 22 19 return; 23 20 } 21 22 SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, 0); 23 SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255); 24 25 SDL_RenderClear(renderer); 26 27 SDL_RenderPresent(renderer); 24 28 25 29 initVulkan(); … … 58 62 void VulkanGame::mainLoop() { 59 63 SDL_Event e; 64 //MouseEvent mouseEvent; 60 65 bool quit = false; 61 66 62 67 while (!quit) { 68 /* 69 gui->processEvents(); 70 71 if (gui->getKeyEvent(SDLK_ESCAPE) == RTWO_KEY_EVENT_PRESSED) { 72 quit = true; 73 } 74 75 while (gui->pollMouseEvent(&mouseEvent)) { 76 cout << "Mouse click detected at (" << mouseEvent.x << ", " << mouseEvent.y << ")" << endl; 77 } 78 */ 79 63 80 while (SDL_PollEvent(&e)) { 64 81 if (e.type == SDL_QUIT) { 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/medieval/chrome/site/your_project_logo.png)
