Changeset e469aed in opengl-game for sdl-game.hpp


Ignore:
Timestamp:
Apr 7, 2021, 1:38:54 AM (3 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
5081b9a
Parents:
cefdf23
Message:

Modify SDLGame to use createImageResources, initImGuiOverlay, and cleanupImGuiOverlay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sdl-game.hpp

    rcefdf23 re469aed  
    107107      bool shouldRecreateSwapChain;
    108108
     109      // Maybe at some point create an imgui pipeline class, but I don't think it makes sense right now
     110      VkDescriptorPool imguiDescriptorPool;
     111
    109112      /*** High-level vars ***/
    110113
     
    118121
    119122      // TODO: Make a separate singleton Timer class
    120       // It could also deal with the steady_clock vs high_resolution_clock issue
    121123      time_point<steady_clock> startTime;
    122124      float fpsStartTime, curTime;
     
    142144      void createSwapChain();
    143145      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
    144149      void createRenderPass();
    145       VkFormat findDepthFormat(); // TODO: Declare/define (in the cpp file) this function in some util functions section
    146       void createResourceCommandPool();
    147150      void createCommandPools();
    148151      void createFramebuffers();
    149152      void createCommandBuffers();
    150153      void createSyncObjects();
     154
     155      void initImGuiOverlay();
     156      void cleanupImGuiOverlay();
    151157
    152158      void renderFrame(ImDrawData* draw_data);
     
    167173      void goToScreen(void (VulkanGame::* renderScreenFn)(int width, int height));
    168174      void quitGame();
    169 
    170       // Pipeline variables. Hopefully, I can eventually use the GraphicsPipeline_Vulkan class for the imgui pipeline
    171       VkDescriptorPool descriptorPool;
    172175};
    173176
Note: See TracChangeset for help on using the changeset viewer.