Skip to content

Commit f955f3a

Browse files
committed
Add ImGui demo window to rendering loop
Introduced a call to `ImGui.ShowDemoWindow()` within the rendering loop to display the Dear ImGui demo window. This provides a showcase of various UI elements and features available in the library. The change is likely intended for debugging, learning, or demonstrating ImGui capabilities. The rest of the rendering process remains unchanged.
1 parent 191df75 commit f955f3a

File tree

2 files changed

+2
-32
lines changed

2 files changed

+2
-32
lines changed

Examples/ExampleGLFWOpenGL3/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@
9999
ImGuiImplGLFW.NewFrame();
100100
ImGui.NewFrame();
101101

102+
ImGui.ShowDemoWindow();
103+
102104
ImGui.Render();
103105

104106
GLFW.MakeContextCurrent(window);

Hexa.NET.ImPlot3D/ImPlot3D.Manual.cs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,6 @@
77

88
public static unsafe partial class ImPlot3D
99
{
10-
/// <summary>
11-
/// To be documented.
12-
/// </summary>
13-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
14-
internal static void SetImGuiContextNative(ImGuiContext* ctx)
15-
{
16-
#if NET5_0_OR_GREATER
17-
((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[0])(ctx);
18-
#else
19-
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[0])((nint)ctx);
20-
#endif
21-
}
22-
23-
/// <summary>
24-
/// To be documented.
25-
/// </summary>
26-
public static void SetImGuiContext(ImGuiContextPtr ctx)
27-
{
28-
SetImGuiContextNative(ctx);
29-
}
30-
31-
/// <summary>
32-
/// To be documented.
33-
/// </summary>
34-
public static void SetImGuiContext(ref ImGuiContext ctx)
35-
{
36-
fixed (ImGuiContext* pctx = &ctx)
37-
{
38-
SetImGuiContextNative((ImGuiContext*)pctx);
39-
}
40-
}
41-
4210
/// <summary>
4311
/// To be documented.
4412
/// </summary>

0 commit comments

Comments
 (0)