private void ShowWindow(ImGuiViewportPtr vp) { VeldridImGuiWindow?window = (VeldridImGuiWindow?)GCHandle.FromIntPtr(vp.PlatformUserData).Target; if (window == null) { throw new NullReferenceException(); } Sdl2Native.SDL_ShowWindow(window.Window.SdlWindowHandle); }
private void ShowWindow(ImGuiViewportPtr vp) { VeldridImGuiWindow window = (VeldridImGuiWindow)GCHandle.FromIntPtr(vp.PlatformUserData).Target; Sdl2Native.SDL_ShowWindow(window.Window.SdlWindowHandle); }
private unsafe void PlatformShowWindow(ImGuiViewportPtr viewport) { WindowBase window = (WindowBase)GCHandle.FromIntPtr(viewport.PlatformUserData).Target; Sdl2Native.SDL_ShowWindow(window.SdlWindow.SdlWindowHandle); }