Changeset 81869ef in opengl-game for vulkan-game.cpp
- Timestamp:
- Feb 14, 2021, 4:08:47 PM (5 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 8d96e95
- Parents:
- 484334e
- File:
-
- 1 edited
-
vulkan-game.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r484334e r81869ef 986 986 ImGui::Render(); 987 987 988 renderFrame(ImGui::GetDrawData()); 989 presentFrame(); 988 // There is already code in renderFrame to render screen-specific things 989 // The imgui code above should be moved to the renderUI function of the particular screen it's needed in 990 // and currentScreen->renderUI should be called in renderFrame. 991 // Since I am no longer drawing the UI to an sdl texture and then rendering that, I don't have to worry 992 // about calling populateVulkanImageFromSDLTexture at all. 993 // If I do ever want to do that again, I can still actually do it inside renderFrame 994 995 gui->refreshWindowSize(); 996 997 const bool isMinimized = gui->getWindowWidth() <= 0 || gui->getWindowHeight() <= 0; 998 999 if (!isMinimized) { 1000 renderFrame(ImGui::GetDrawData()); 1001 presentFrame(); 1002 } 990 1003 } 991 1004 }
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)