Skip to content

Commit

Permalink
Updated generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
JunaMeinhold committed Aug 5, 2024
1 parent c382dba commit 9aa8144
Show file tree
Hide file tree
Showing 578 changed files with 664,882 additions and 511,329 deletions.
2 changes: 0 additions & 2 deletions ExampleD3D11/ImGuiDemo/ImGuiD3D11Renderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,6 @@ private static unsafe void SetWindowSize(ImGuiViewport* viewport, Vector2 size)
RendererData* bd = GetBackendData();
ViewportData* vd = (ViewportData*)viewport->RendererUserData;

vd->RTView = null;

if (vd->RTView.Handle != null)
{
vd->RTView.Release();
Expand Down
2 changes: 1 addition & 1 deletion ExampleD3D11/ImGuiDemo/ImGuiManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public unsafe void NewFrame()
ImGui.PopStyleColor(1);
}

public static int DockSpaceId { get; private set; }
public static uint DockSpaceId { get; private set; }

public unsafe void EndFrame()
{
Expand Down
8 changes: 4 additions & 4 deletions ExampleD3D11/ImGuiDemo/ImGuiSDL2Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private static unsafe bool ProcessEvent(Event env)
mouse_pos.Y += window_y;
}

io.AddMouseSourceEvent(env.Motion.Which == unchecked((uint)-1) ? ImGuiMouseSource.TouchScreen : ImGuiMouseSource.Source);
io.AddMouseSourceEvent(env.Motion.Which == unchecked((uint)-1) ? ImGuiMouseSource.TouchScreen : ImGuiMouseSource.Mouse);
io.AddMousePosEvent(mouse_pos.X, mouse_pos.Y);
return true;
}
Expand All @@ -282,7 +282,7 @@ private static unsafe bool ProcessEvent(Event env)

//wheel_x /= 100.0f;

io.AddMouseSourceEvent(env.Wheel.Which == unchecked((uint)-1) ? ImGuiMouseSource.TouchScreen : ImGuiMouseSource.Source);
io.AddMouseSourceEvent(env.Wheel.Which == unchecked((uint)-1) ? ImGuiMouseSource.TouchScreen : ImGuiMouseSource.Mouse);
io.AddMouseWheelEvent(wheel_x, wheel_y);
return true;
}
Expand All @@ -298,7 +298,7 @@ private static unsafe bool ProcessEvent(Event env)
if (mouse_button == -1)
break;

io.AddMouseSourceEvent(env.Button.Which == unchecked((uint)-1) ? ImGuiMouseSource.TouchScreen : ImGuiMouseSource.Source);
io.AddMouseSourceEvent(env.Button.Which == unchecked((uint)-1) ? ImGuiMouseSource.TouchScreen : ImGuiMouseSource.Mouse);
io.AddMouseButtonEvent(mouse_button, env.Type == (int)EventType.Mousebuttondown);
bd->MouseButtonsDown = env.Type == (int)EventType.Mousebuttondown ? bd->MouseButtonsDown | 1 << mouse_button : bd->MouseButtonsDown & ~(1 << mouse_button);
return true;
Expand Down Expand Up @@ -580,7 +580,7 @@ private static unsafe void UpdateMouseData()
// - [X] SDL backend correctly reports this regardless of another viewport behind focused and dragged from (we need this to find a useful drag and drop target).
if ((io.BackendFlags & ImGuiBackendFlags.HasMouseHoveredViewport) != 0)
{
int mouse_viewport_id = 0;
uint mouse_viewport_id = 0;
Window* sdl_mouse_window = sdl.GetWindowFromID(bd->MouseWindowID);
if (sdl_mouse_window != null)
{
Expand Down
24 changes: 0 additions & 24 deletions Generator/ArrayMapping.cs

This file was deleted.

181 changes: 0 additions & 181 deletions Generator/CodeWriter.cs

This file was deleted.

78 changes: 0 additions & 78 deletions Generator/CsCodeGenerator.Constants.cs

This file was deleted.

Loading

0 comments on commit 9aa8144

Please sign in to comment.