Skip to content

Commit 9b74ee4

Browse files
committed
Update to v1.78.
1 parent 181ceb5 commit 9b74ee4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+26572
-8560
lines changed

deps/cimgui/linux-x64/cimgui.so

219 KB
Binary file not shown.

deps/cimgui/osx-x64/cimgui.dylib

202 KB
Binary file not shown.

deps/cimgui/win-x64/cimgui.dll

150 KB
Binary file not shown.

deps/cimgui/win-x86/cimgui.dll

125 KB
Binary file not shown.

src/CodeGenerator/definitions.json

Lines changed: 19932 additions & 7338 deletions
Large diffs are not rendered by default.

src/CodeGenerator/structs_and_enums.json

Lines changed: 4528 additions & 490 deletions
Large diffs are not rendered by default.

src/ImGui.NET.SampleProgram.XNA/SampleGame.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected virtual void ImGuiLayout()
8282
// Tip: if we don't call ImGui.Begin()/ImGui.End() the widgets appears in a window automatically called "Debug"
8383
{
8484
ImGui.Text("Hello, world!");
85-
ImGui.SliderFloat("float", ref f, 0.0f, 1.0f, string.Empty, 1f);
85+
ImGui.SliderFloat("float", ref f, 0.0f, 1.0f, string.Empty);
8686
ImGui.ColorEdit3("clear color", ref clear_color);
8787
if (ImGui.Button("Test Window")) show_test_window = !show_test_window;
8888
if (ImGui.Button("Another Window")) show_another_window = !show_another_window;

src/ImGui.NET.SampleProgram/MemoryEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public unsafe void Draw(string title, byte[] mem_data, int mem_size, int base_di
104104
float scroll_offset = ((DataEditingAddr / Rows) - (data_editing_addr_backup / Rows)) * line_height;
105105
bool scroll_desired = (scroll_offset < 0.0f && DataEditingAddr < visible_start_addr + Rows * 2) || (scroll_offset > 0.0f && DataEditingAddr > visible_end_addr - Rows * 2);
106106
if (scroll_desired)
107-
ImGuiNative.igSetScrollY(ImGuiNative.igGetScrollY() + scroll_offset);
107+
ImGuiNative.igSetScrollYFloat(ImGuiNative.igGetScrollY() + scroll_offset);
108108
}
109109

110110
for (int line_i = clipper.DisplayStart; line_i < clipper.DisplayEnd; line_i++) // display only visible items

src/ImGui.NET.SampleProgram/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private static unsafe void SubmitUI()
8484
// Tip: if we don't call ImGui.BeginWindow()/ImGui.EndWindow() the widgets automatically appears in a window called "Debug".
8585
{
8686
ImGui.Text("Hello, world!"); // Display some text (you can use a format string too)
87-
ImGui.SliderFloat("float", ref _f, 0, 1, _f.ToString("0.000"), 1); // Edit 1 float using a slider from 0.0f to 1.0f
87+
ImGui.SliderFloat("float", ref _f, 0, 1, _f.ToString("0.000")); // Edit 1 float using a slider from 0.0f to 1.0f
8888
//ImGui.ColorEdit3("clear color", ref _clearColor); // Edit 3 floats representing a color
8989

9090
ImGui.Text($"Mouse position: {ImGui.GetMousePos()}");

src/ImGui.NET/Generated/ImColor.gen.cs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,29 @@ public unsafe partial struct ImColorPtr
2020
public ref Vector4 Value => ref Unsafe.AsRef<Vector4>(&NativePtr->Value);
2121
public void Destroy()
2222
{
23-
ImGuiNative.ImColor_destroy(NativePtr);
23+
ImGuiNative.ImColor_destroy((ImColor*)(NativePtr));
2424
}
2525
public ImColor HSV(float h, float s, float v)
2626
{
27+
ImColor __retval;
2728
float a = 1.0f;
28-
ImColor ret = ImGuiNative.ImColor_HSV(NativePtr, h, s, v, a);
29-
return ret;
29+
ImGuiNative.ImColor_HSV(&__retval, (ImColor*)(NativePtr), h, s, v, a);
30+
return __retval;
3031
}
3132
public ImColor HSV(float h, float s, float v, float a)
3233
{
33-
ImColor ret = ImGuiNative.ImColor_HSV(NativePtr, h, s, v, a);
34-
return ret;
34+
ImColor __retval;
35+
ImGuiNative.ImColor_HSV(&__retval, (ImColor*)(NativePtr), h, s, v, a);
36+
return __retval;
3537
}
3638
public void SetHSV(float h, float s, float v)
3739
{
3840
float a = 1.0f;
39-
ImGuiNative.ImColor_SetHSV(NativePtr, h, s, v, a);
41+
ImGuiNative.ImColor_SetHSV((ImColor*)(NativePtr), h, s, v, a);
4042
}
4143
public void SetHSV(float h, float s, float v, float a)
4244
{
43-
ImGuiNative.ImColor_SetHSV(NativePtr, h, s, v, a);
45+
ImGuiNative.ImColor_SetHSV((ImColor*)(NativePtr), h, s, v, a);
4446
}
4547
}
4648
}

0 commit comments

Comments
 (0)