Changeset ea2b4dc in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Feb 14, 2021, 4:24:08 AM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
880cfc2
Parents:
1cb64e6
git-author:
Dmitry Portnoy <dportnoy@…> (02/14/21 04:23:03)
git-committer:
Dmitry Portnoy <dportnoy@…> (02/14/21 04:24:08)
Message:

In VulkanGame, generate the IMGUI draw data outside of renderFrame() and
pass it in, instead ofgenerating it inside the function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r1cb64e6 rea2b4dc  
    1717#include <SDL2/SDL.h>
    1818#include <SDL2/SDL_ttf.h>
     19
     20#include "IMGUI/imgui_impl_vulkan.h"
    1921
    2022#include "consts.hpp"
     
    451453            vector<VkDescriptorBufferInfo>& bufferInfoList);
    452454
    453       void renderFrame();
     455      void renderFrame(ImDrawData* draw_data);
    454456      void presentFrame();
    455457
Note: See TracChangeset for help on using the changeset viewer.