From 1826f494b64af97ad5c48f761c56f6646932e222 Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Fri, 27 Apr 2018 19:02:21 -0700 Subject: [PATCH] Preserve old igBegin overloads for compatibility. --- src/ImGui.NET/ImGuiNative.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ImGui.NET/ImGuiNative.cs b/src/ImGui.NET/ImGuiNative.cs index b393ee5..16fae61 100644 --- a/src/ImGui.NET/ImGuiNative.cs +++ b/src/ImGui.NET/ImGuiNative.cs @@ -52,6 +52,12 @@ namespace ImGuiNET [return: MarshalAs(UnmanagedType.I1)] public static extern bool igBegin2(string name, byte* p_opened, Vector2 size_on_first_use, float bg_alpha, WindowFlags flags); [DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool igBegin(string name, ref bool p_opened, WindowFlags flags); + [DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool igBegin2(string name, ref bool p_opened, Vector2 size_on_first_use, float bg_alpha, WindowFlags flags); + [DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)] public static extern void igEnd(); [DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)] [return: MarshalAs(UnmanagedType.I1)]