Skip to content

Commit 785bd9a

Browse files
committed
upgrade imgui net to 1.91.6 version
also fixed some bugs in sample program with the help of cool new debug flag provided by imgui folks to debug the ui.
1 parent bfcb06e commit 785bd9a

4 files changed

Lines changed: 5 additions & 11 deletions

File tree

ClickableTransparentOverlay/ClickableTransparentOverlay.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
</ItemGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="ImGui.NET" Version="1.90.9.1" />
29-
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
28+
<PackageReference Include="ImGui.NET" Version="1.91.6.1" />
29+
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
3030
<PackageReference Include="Vortice.D3DCompiler" Version="3.5.0" />
3131
<PackageReference Include="Vortice.Direct3D11" Version="3.5.0" />
32-
<None Include="..\README.md" Pack="true" PackagePath="\"/>
32+
<None Include="..\README.md" Pack="true" PackagePath="\" />
3333
</ItemGroup>
3434

3535
</Project>

ClickableTransparentOverlay/ImGuiRenderer.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ public ImGuiRenderer(ID3D11Device device, ID3D11DeviceContext deviceContext, int
5454
this.CreateDeviceObjects();
5555
}
5656

57-
public void Start()
58-
{
59-
ImGui.NewFrame();
60-
}
61-
6257
public void Update(float deltaTime, Action DoRender)
6358
{
6459
var io = ImGui.GetIO();

ClickableTransparentOverlay/Overlay.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ public async Task Start()
180180
{
181181
await this.InitializeResources();
182182
this.ReplaceFontIfRequired();
183-
this.renderer.Start();
184183
this.RunInfiniteLoop(this.cancellationTokenSource.Token);
185184
});
186185

Examples/SimpleExample/SampleOverlay.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ protected override void Render()
2929
{
3030
this.FPSLimit = this.FPSHelper;
3131
}
32-
33-
ImGui.End();
3432
}
3533

34+
ImGui.End();
35+
3636
if (!this.wantKeepDemoWindow)
3737
{
3838
this.Close();

0 commit comments

Comments
 (0)