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
Type | Name | Description |
---|---|---|
System.IntPtr | hWnd | Handle of the window. |
PInvoke.User32.WindowMessage | msg | Type of window message. |
System.Void* | wParam | wParam. |
System.Void* | lParam | lParam. |
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
Type | Name |
---|---|
System.Int32 | newWidth |
System.Int32 | newHeight |
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
Type | Name |
---|---|
System.IntPtr | hCursor |
LoadImage(string)
View Source
Declaration
public TextureWrap LoadImage(string path)
Returns
Parameters
Type | Name |
---|---|
System.String | path |
LoadImage(byte[])
View Source
Declaration
public TextureWrap LoadImage(byte[] imageBytes)
Returns
Parameters
Type | Name |
---|---|
System.Byte[] | imageBytes |
LoadImageRaw(byte[], int, int, int)
View Source
Declaration
public TextureWrap LoadImageRaw(byte[] imageData, int width, int height, int numChannels = 4)
Returns
Parameters
Type | Name |
---|---|
System.Byte[] | imageData |
System.Int32 | width |
System.Int32 | height |
System.Int32 | numChannels |
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