Beispiel #1
0
        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);
        }
Beispiel #2
0
        private void ShowWindow(ImGuiViewportPtr vp)
        {
            VeldridImGuiWindow window = (VeldridImGuiWindow)GCHandle.FromIntPtr(vp.PlatformUserData).Target;

            Sdl2Native.SDL_ShowWindow(window.Window.SdlWindowHandle);
        }
Beispiel #3
0
        private unsafe void PlatformShowWindow(ImGuiViewportPtr viewport)
        {
            WindowBase window = (WindowBase)GCHandle.FromIntPtr(viewport.PlatformUserData).Target;

            Sdl2Native.SDL_ShowWindow(window.SdlWindow.SdlWindowHandle);
        }