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; }
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); }
public bool ImGuiOnEvent(OpenTKWindow window, TKEvent e) => ImGuiOpenTKHelper.HandleEvent(e);