Changeset e469aed in opengl-game for sdl-game.hpp
- Timestamp:
- Apr 7, 2021, 1:38:54 AM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 5081b9a
- Parents:
- cefdf23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sdl-game.hpp
rcefdf23 re469aed 107 107 bool shouldRecreateSwapChain; 108 108 109 // Maybe at some point create an imgui pipeline class, but I don't think it makes sense right now 110 VkDescriptorPool imguiDescriptorPool; 111 109 112 /*** High-level vars ***/ 110 113 … … 118 121 119 122 // TODO: Make a separate singleton Timer class 120 // It could also deal with the steady_clock vs high_resolution_clock issue121 123 time_point<steady_clock> startTime; 122 124 float fpsStartTime, curTime; … … 142 144 void createSwapChain(); 143 145 void createImageViews(); 146 void createResourceCommandPool(); 147 void createImageResources(); 148 VkFormat findDepthFormat(); // TODO: Declare/define (in the cpp file) this function in some util functions section 144 149 void createRenderPass(); 145 VkFormat findDepthFormat(); // TODO: Declare/define (in the cpp file) this function in some util functions section146 void createResourceCommandPool();147 150 void createCommandPools(); 148 151 void createFramebuffers(); 149 152 void createCommandBuffers(); 150 153 void createSyncObjects(); 154 155 void initImGuiOverlay(); 156 void cleanupImGuiOverlay(); 151 157 152 158 void renderFrame(ImDrawData* draw_data); … … 167 173 void goToScreen(void (VulkanGame::* renderScreenFn)(int width, int height)); 168 174 void quitGame(); 169 170 // Pipeline variables. Hopefully, I can eventually use the GraphicsPipeline_Vulkan class for the imgui pipeline171 VkDescriptorPool descriptorPool;172 175 }; 173 176
Note:
See TracChangeset
for help on using the changeset viewer.