Changeset 699e83a in opengl-game
- Timestamp:
- Jun 10, 2020, 9:18:21 PM (4 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- f809ae6
- Parents:
- e1f88a9
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
makefile
re1f88a9 r699e83a 59 59 $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS) -DGAMEGUI_INCLUDE_VULKAN 60 60 61 GUI_SRC_FILES = gui/screen.cpp gui/main-screen.cpp gui/ ui-element.cpp gui/button.cpp62 GUI_HEADER_FILES = gui/screen.hpp gui/main-screen.hpp gui/ ui-element.hpp gui/button.hpp61 GUI_SRC_FILES = gui/screen.cpp gui/main-screen.cpp gui/game-screen.cpp gui/ui-element.cpp gui/button.cpp gui/panel.cpp 62 GUI_HEADER_FILES = gui/screen.hpp gui/main-screen.hpp gui/game-screen.hpp gui/ui-element.hpp gui/button.hpp gui/panel.hpp 63 63 64 64 SRC_FILES = main-vulkan.cpp vulkan-game.cpp crash-logger.cpp logger.cpp vulkan-utils.cpp utils.cpp game-gui-sdl.cpp $(GUI_SRC_FILES) -
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); -
vulkan-game.hpp
re1f88a9 r699e83a 18 18 19 19 #include "gui/screen.hpp" 20 #include "gui/main-screen.hpp"21 20 22 21 using namespace glm;
Note:
See TracChangeset
for help on using the changeset viewer.