mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:00:05 +00:00
Add imgui debug window, still need to use unique contexts
This commit is contained in:
parent
b18692657a
commit
cd01bb70b6
10 changed files with 325 additions and 3 deletions
38
scwx-qt/source/scwx/qt/ui/imgui_debug_widget.hpp
Normal file
38
scwx-qt/source/scwx/qt/ui/imgui_debug_widget.hpp
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue