コード例 #1
0
 public ImGuiOpenTKWindow(
     string title = "ImGui.NET-OpenTK-CS Window",
     int width    = 800, int height = 600) : base(title, width, height)
 {
     _IsSuperClass = GetType() == typeof(ImGuiOpenTKWindow);
     ImGuiOpenTKHelper.Init();
     OnEvent = ImGuiOnEvent;
     OnLoop  = ImGuiOnLoop;
 }
コード例 #2
0
        public virtual void ImGuiRender()
        {
            //if(Mouse?.GetState().LeftButton == OpenTK.Input.ButtonState.Pressed)
            ImGuiOpenTKHelper.NewFrame(Size, System.Numerics.Vector2.One, ref g_Time);

            ImGuiLayout();

            ImGuiOpenTKHelper.Render(Size);
        }
コード例 #3
0
 public bool ImGuiOnEvent(OpenTKWindow window, TKEvent e)
 => ImGuiOpenTKHelper.HandleEvent(e);