Ae.ImGuiBootstrapper by alanedwardes

<PackageReference Include="Ae.ImGuiBootstrapper" Version="0.0.6" />

 ImGuiWindow

public sealed class ImGuiWindow : IDisposable
Provides a simple wrapper around a window to render ImgGui elements.

Provides access to the underlying Veldrid GraphicsDevice.

public bool IsOpen { get; }

Determines whether the window is open or has been closed.

public ImGuiRenderer Renderer { get; }

Provides access to the underlying ImGuiRenderer.

public Sdl2Window Window { get; }

Provides access to the underlying Sdl2Window.

public ImGuiWindow(Sdl2Window window, GraphicsDevice graphicsDevice)

Create a new window using the specified Sdl2Window and GraphicsDevice.

public ImGuiWindow(string windowTitle, int x = 50, int y = 50, int width = 1280, int height = 720)

Create a new window on which to render ImgGui elements.

public ImGuiWindow(WindowCreateInfo windowCreateInfo)

Create a new window on which to render ImgGui elements using the specified WindowCreateInfo.

public ImGuiWindow(WindowCreateInfo windowCreateInfo, GraphicsDeviceOptions graphicsDeviceOptions)

Create a new window on which to render ImgGui elements.

public void Dispose()

Dispose of the low-level resources used by the window.

public void EndFrame(ref Vector3 backgroundColor)

End the current frame after all ImGui draw calls.

public bool Loop(ref Vector3 backgroundColor)

Should be called in a while loop, with ImgGui draw calls in the body of the loop.

public void StartFrame()

Start a new frame. This call should be followed by ImgGui draw calls.