Diligent Engine
Loading...
Searching...
No Matches
Diligent::ImGuiImplDiligent Class Reference

ImGui renderer for Diligent Engine. More...

#include <ImGuiImplDiligent.hpp>

Public Member Functions

virtual void NewFrame (Uint32 RenderSurfaceWidth, Uint32 RenderSurfaceHeight, SURFACE_TRANSFORM SurfacePreTransform)
 Begins new frame.
virtual void Render (IDeviceContext *pCtx, const ImGuiDiligentRenderTargetDesc *pRenderTarget=nullptr)

Detailed Description

ImGui renderer for Diligent Engine.

Member Function Documentation

◆ NewFrame()

void Diligent::ImGuiImplDiligent::NewFrame ( Uint32 RenderSurfaceWidth,
Uint32 RenderSurfaceHeight,
SURFACE_TRANSFORM SurfacePreTransform )
virtual

Begins new frame.

Parameters
[in]RenderSurfaceWidth- Render surface width not accounting for pre-transform. Most of the time this is the actual swap chain width.
[in]RenderSurfaceHeight- Render surface height not accounting for pre-transform. Most of the time this is the actual swap chain height.
[in]SurfacePreTransform- Render surface pre-transform. Most of the time this is the swap chain pre-transform.

◆ Render()

void Diligent::ImGuiImplDiligent::Render ( IDeviceContext * pCtx,
const ImGuiDiligentRenderTargetDesc * pRenderTarget = nullptr )
virtual

Renders ImGui using the specified render target configuration. When pRenderTarget is null, uses the configuration specified at creation time. Pipeline resources are created on demand and cached by configuration.