Changeset 0e09340 in opengl-game
- Timestamp:
- Sep 27, 2019, 8:21:48 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- fa9fa1c
- Parents:
- 6fc24c7
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
game-gui-sdl.cpp
r6fc24c7 r0e09340 93 93 break; 94 94 case SDL_WINDOWEVENT: 95 event->type = UI_EVENT_WINDOW; 95 if (e.window.event == SDL_WINDOWEVENT_SIZE_CHANGED || 96 e.window.event == SDL_WINDOWEVENT_MINIMIZED || 97 e.window.event == SDL_WINDOWEVENT_MAXIMIZED) { 98 event->type = UI_EVENT_WINDOWRESIZE; 99 } else { 100 event->type = UI_EVENT_WINDOW; 101 } 96 102 break; 97 103 case SDL_KEYUP: -
game-gui.hpp
r6fc24c7 r0e09340 17 17 UI_EVENT_QUIT, 18 18 UI_EVENT_WINDOW, 19 UI_EVENT_WINDOWRESIZE, 19 20 UI_EVENT_KEY, 20 21 UI_EVENT_MOUSEBUTTONDOWN, -
upgrade-TODO.txt
r6fc24c7 r0e09340 18 18 19 19 - Add CrashLogger functionality 20 21 22 opengl-game TODO 23 -------------- 24 25 - Make sure new-game.cpp is updated with the TODO lines 26 - Implament the window resize callback and related functionality in opengl-game / game-gui-glfw -
vulkan-game.cpp
r6fc24c7 r0e09340 124 124 cout << "Window event detected" << endl; 125 125 // Currently unused 126 break; 127 case UI_EVENT_WINDOWRESIZE: 128 cout << "Window resize event detected" << endl; 129 framebufferResized = true; 126 130 break; 127 131 case UI_EVENT_KEY: -
vulkan-game.hpp
r6fc24c7 r0e09340 40 40 VkRenderPass renderPass; 41 41 42 bool framebufferResized = false; 43 42 44 bool initWindow(int width, int height, unsigned char guiFlags); 43 45 void initVulkan(); -
vulkan-ref.cpp
r6fc24c7 r0e09340 227 227 size_t currentFrame = 0; 228 228 229 /*** START OF REFACTORED CODE ***/ 229 230 bool framebufferResized = false; 230 231 231 /*** START OF REFACTORED CODE ***/232 232 bool initWindow() { 233 233 if (gui->init() == RTWO_ERROR) { … … 1697 1697 quit = true; 1698 1698 } 1699 /*** END OF REFACTORED CODE ***/1700 1699 if (e.type == SDL_WINDOWEVENT) { 1701 1700 if (e.window.event == SDL_WINDOWEVENT_SIZE_CHANGED || … … 1704 1703 } 1705 1704 } 1706 /*** START OF REFACTORED CODE ***/1707 1705 } 1708 1706
Note:
See TracChangeset
for help on using the changeset viewer.