Add imgui debug window, still need to use unique contexts

This commit is contained in:
Dan Paulat 2022-11-26 00:27:35 -06:00
parent b18692657a
commit cd01bb70b6
10 changed files with 325 additions and 3 deletions

View file

@ -0,0 +1,38 @@
#pragma once
#include <QOpenGLWidget>
namespace Ui
{
class ImGuiDebugWidget;
}
namespace scwx
{
namespace qt
{
namespace ui
{
class ImGuiDebugWidgetImpl;
class ImGuiDebugWidget : public QOpenGLWidget
{
private:
Q_DISABLE_COPY(ImGuiDebugWidget)
public:
explicit ImGuiDebugWidget(QWidget* parent = nullptr);
~ImGuiDebugWidget();
void initializeGL() override;
void paintGL() override;
private:
friend class ImGuiDebugWidgetImpl;
std::unique_ptr<ImGuiDebugWidgetImpl> p;
};
} // namespace ui
} // namespace qt
} // namespace scwx