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
Type | Name |
---|---|
ImGuiNET.ImDrawDataPtr | drawData |
RenderDrawData(ImDrawDataPtr)
View Source
Declaration
public void RenderDrawData(ImDrawDataPtr drawData)
Parameters
Type | Name |
---|---|
ImGuiNET.ImDrawDataPtr | drawData |
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
Type | Name |
---|---|
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
Type | Name |
---|---|
ImGuiNET.ImGuiViewportPtr | viewport |
DestroyWindow(ImGuiViewportPtr)
View Source
Declaration
public void DestroyWindow(ImGuiViewportPtr viewport)
Parameters
Type | Name |
---|---|
ImGuiNET.ImGuiViewportPtr | viewport |
SetWindowSize(ImGuiViewportPtr, Vector2)
View Source
Declaration
public void SetWindowSize(ImGuiViewportPtr viewport, Vector2 size)
Parameters
Type | Name |
---|---|
ImGuiNET.ImGuiViewportPtr | viewport |
SharpDX.Vector2 | size |
RenderWindow(ImGuiViewportPtr, IntPtr)
View Source
Declaration
public void RenderWindow(ImGuiViewportPtr viewport, IntPtr v)
Parameters
Type | Name |
---|---|
ImGuiNET.ImGuiViewportPtr | viewport |
System.IntPtr | v |
SwapBuffers(ImGuiViewportPtr, IntPtr)
View Source
Declaration
public void SwapBuffers(ImGuiViewportPtr viewport, IntPtr v)
Parameters
Type | Name |
---|---|
ImGuiNET.ImGuiViewportPtr | viewport |
System.IntPtr | v |