Skip to main content

Class ImGui_Impl_DX11

Currently undocumented because it is a horrible mess. A near-direct port of https://github.com/ocornut/imgui/blob/master/examples/imgui_impl_dx11.cpp State backup follows the general layout of imgui's sample (which is a mess), but has been rather expanded to cover the vast majority of render state, following the example here https://github.com/GPUOpen-LibrariesAndSDKs/CrossfireAPI11/blob/master/amd_lib/src/AMD_SaveRestoreState.cpp Would be nice to organize it better, but it seems to work

Assembly: ImGuiScene.dll
View Source
Declaration
public class ImGui_Impl_DX11 : IImGuiRenderer

Implements:
ImGuiScene.IImGuiRenderer

Methods

SetupRenderState(ImDrawDataPtr)

View Source
Declaration
public void SetupRenderState(ImDrawDataPtr drawData)
Parameters
TypeName
ImGuiNET.ImDrawDataPtrdrawData

RenderDrawData(ImDrawDataPtr)

View Source
Declaration
public void RenderDrawData(ImDrawDataPtr drawData)
Parameters
TypeName
ImGuiNET.ImDrawDataPtrdrawData

CreateFontsTexture()

View Source
Declaration
public void CreateFontsTexture()

CreateDeviceObjects()

View Source
Declaration
public bool CreateDeviceObjects()
Returns

System.Boolean

RebuildFontTexture()

View Source
Declaration
public void RebuildFontTexture()

InvalidateDeviceObjects()

View Source
Declaration
public void InvalidateDeviceObjects()

Init(params object[])

View Source
Declaration
public void Init(params object[] initParams)
Parameters
TypeName
System.Object[]initParams

Shutdown()

View Source
Declaration
public void Shutdown()

NewFrame()

View Source
Declaration
public void NewFrame()

CreateWindow(ImGuiViewportPtr)

View Source
Declaration
public void CreateWindow(ImGuiViewportPtr viewport)
Parameters
TypeName
ImGuiNET.ImGuiViewportPtrviewport

DestroyWindow(ImGuiViewportPtr)

View Source
Declaration
public void DestroyWindow(ImGuiViewportPtr viewport)
Parameters
TypeName
ImGuiNET.ImGuiViewportPtrviewport

SetWindowSize(ImGuiViewportPtr, Vector2)

View Source
Declaration
public void SetWindowSize(ImGuiViewportPtr viewport, Vector2 size)
Parameters
TypeName
ImGuiNET.ImGuiViewportPtrviewport
SharpDX.Vector2size

RenderWindow(ImGuiViewportPtr, IntPtr)

View Source
Declaration
public void RenderWindow(ImGuiViewportPtr viewport, IntPtr v)
Parameters
TypeName
ImGuiNET.ImGuiViewportPtrviewport
System.IntPtrv

SwapBuffers(ImGuiViewportPtr, IntPtr)

View Source
Declaration
public void SwapBuffers(ImGuiViewportPtr viewport, IntPtr v)
Parameters
TypeName
ImGuiNET.ImGuiViewportPtrviewport
System.IntPtrv

Implements