Skip to main content

Class RawDX11Scene

Assembly: ImGuiScene.dll
View Source
Declaration
public sealed class RawDX11Scene : IDisposable

Implements:
System.IDisposable

Properties

Device

View Source
Declaration
public Device Device { get; }

WindowHandlePtr

View Source
Declaration
public IntPtr WindowHandlePtr { get; }

SwapChain

View Source
Declaration
public SwapChain SwapChain { get; }

UpdateCursor

View Source
Declaration
public bool UpdateCursor { get; set; }

ImGuiIniPath

View Source
Declaration
public string ImGuiIniPath { get; set; }

Fields

OnBuildUI

User methods invoked every ImGui frame to construct custom UIs.

View Source
Declaration
public RawDX11Scene.BuildUIDelegate OnBuildUI

OnNewInputFrame

View Source
Declaration
public RawDX11Scene.NewInputFrameDelegate OnNewInputFrame

OnNewRenderFrame

View Source
Declaration
public RawDX11Scene.NewRenderFrameDelegate OnNewRenderFrame

Methods

ProcessWndProcW(IntPtr, WindowMessage, void*, void*)

Processes window messages.

View Source
Declaration
public IntPtr? ProcessWndProcW(IntPtr hWnd, User32.WindowMessage msg, void* wParam, void* lParam)
Returns

System.Nullable<System.IntPtr>: Return value.

Parameters
TypeNameDescription
System.IntPtrhWndHandle of the window.
PInvoke.User32.WindowMessagemsgType of window message.
System.Void*wParamwParam.
System.Void*lParamlParam.

Render()

View Source
Declaration
public void Render()

OnPreResize()

View Source
Declaration
public void OnPreResize()

OnPostResize(int, int)

View Source
Declaration
public void OnPostResize(int newWidth, int newHeight)
Parameters
TypeName
System.Int32newWidth
System.Int32newHeight

InvalidateFonts()

View Source
Declaration
public void InvalidateFonts()

ClearStacksOnContext()

View Source
Declaration
public void ClearStacksOnContext()

IsImGuiCursor(IntPtr)

View Source
Declaration
public bool IsImGuiCursor(IntPtr hCursor)
Returns

System.Boolean

Parameters
TypeName
System.IntPtrhCursor

LoadImage(string)

View Source
Declaration
public TextureWrap LoadImage(string path)
Returns

ImGuiScene.TextureWrap

Parameters
TypeName
System.Stringpath

LoadImage(byte[])

View Source
Declaration
public TextureWrap LoadImage(byte[] imageBytes)
Returns

ImGuiScene.TextureWrap

Parameters
TypeName
System.Byte[]imageBytes

LoadImageRaw(byte[], int, int, int)

View Source
Declaration
public TextureWrap LoadImageRaw(byte[] imageData, int width, int height, int numChannels = 4)
Returns

ImGuiScene.TextureWrap

Parameters
TypeName
System.Byte[]imageData
System.Int32width
System.Int32height
System.Int32numChannels

CaptureScreenshot()

View Source
Declaration
public byte[] CaptureScreenshot()
Returns

System.Byte[]

~RawDX11Scene()

View Source
Declaration
protected ~RawDX11Scene()

Dispose()

View Source
Declaration
public void Dispose()

Implements

  • System.IDisposable