35 virtual void Resize(
const VkExtent2D& extent)
override;
Context used for render processes. This object is rebuilt for every frame. /.
Definition foray_framerenderinfo.hpp:14
Wraps allocation and lifetime functionality of VkImage.
Definition foray_managedimage.hpp:13
The ImguiStage renders the imgui menu on top of an existing image or the swapchain....
Definition foray_imguistage.hpp:9
core::ManagedImage * mTargetImage
Definition foray_imguistage.hpp:45
VkDescriptorPool mImguiPool
Definition foray_imguistage.hpp:46
virtual void RecordFrame(VkCommandBuffer cmdBuffer, base::FrameRenderInfo &renderInfo) override
Records a frame to cmdBuffer.
void AddWindowDraw(std::function< void()> windowDraw)
Add a function that renders an imgui window. Example:
Definition foray_imguistage.hpp:32
virtual void InitForImage(core::Context *context, core::ManagedImage *backgroundImage)
Init the imgui stage for rendering over a generic background image.
virtual ~ImguiStage()
Definition foray_imguistage.hpp:40
virtual void Init(core::Context *context, core::ManagedImage *backgroundImage)
Initializes and selects background image mode if set, swapchain mode otherwise.
virtual void Resize(const VkExtent2D &extent) override
When the window has been resized, update the target images.
virtual void InitForSwapchain(core::Context *context)
Init the imgui stage for rendering to the swapchain.
std::vector< VkFramebuffer > mFrameBuffers
Definition foray_imguistage.hpp:54
virtual void SetBackgroundImage(core::ManagedImage *backgroundImage)
Switch background image and between modes at runtime.
std::vector< std::function< void()> > mWindowDraws
Definition foray_imguistage.hpp:47
virtual void PrepareRenderpass()
VkRenderPass mRenderPass
Definition foray_imguistage.hpp:55
void ProcessSdlEvent(const SDL_Event *sdlEvent)
Allows imgui to handle input events.
virtual void Destroy() override
Destroy the render stage. Finalizes all components.
VkClearValue mClearValue
Definition foray_imguistage.hpp:43
virtual void DestroyFrameBufferAndRenderPass()
Render stage base class giving a common interface for rendering processes.
Definition foray_renderstage.hpp:15
Definition foray_blitstage.hpp:4
Non owning context object.
Definition foray_context.hpp:16