Changeset 699e83a in opengl-game for vulkan-game.cpp
- Timestamp:
- Jun 10, 2020, 9:18:21 PM (4 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- f809ae6
- Parents:
- e1f88a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
re1f88a9 r699e83a 10 10 11 11 #include "utils.hpp" 12 13 #include "gui/main-screen.hpp" 14 #include "gui/game-screen.hpp" 12 15 13 16 using namespace std; … … 46 49 } 47 50 51 // TODO: Maybe make a struct of properties to share with each screen instead of passing 52 // in all of VulkanGame 48 53 screens[SCREEN_MAIN] = new MainScreen(*renderer, *this); 54 screens[SCREEN_GAME] = new GameScreen(*renderer, *this); 49 55 50 56 currentScreen = screens[SCREEN_MAIN]; … … 1144 1150 1145 1151 delete screens[SCREEN_MAIN]; 1152 delete screens[SCREEN_GAME]; 1146 1153 1147 1154 // TODO: Check if any of these functions accept null parameters … … 1620 1627 1621 1628 vkCmdBeginRenderPass(commandBuffers[i], &renderPassInfo, VK_SUBPASS_CONTENTS_INLINE); 1622 1623 /*1624 modelPipeline.createRenderCommands(commandBuffers[i], i);1625 shipPipeline.createRenderCommands(commandBuffers[i], i);1626 asteroidPipeline.createRenderCommands(commandBuffers[i], i);1627 laserPipeline.createRenderCommands(commandBuffers[i], i);1628 explosionPipeline.createRenderCommands(commandBuffers[i], i);1629 1630 // Always render this pipeline last1631 overlayPipeline.createRenderCommands(commandBuffers[i], i);1632 */1633 1629 1634 1630 currentScreen->createRenderCommands(commandBuffers[i], i);
Note:
See TracChangeset
for help on using the changeset viewer.