Decouple Imgui from Prdp

This commit is contained in:
SimoneN64
2024-09-20 15:42:44 +02:00
parent d1ccaa6667
commit c2743c8537
7 changed files with 108 additions and 102 deletions

View File

@@ -84,15 +84,17 @@ class RenderWidget : public QWidget {
SDL_Window *sdlWindow;
QTimer timer;
void UpdateEvents();
std::shared_ptr<Vulkan::WSI> wsi;
public:
explicit RenderWidget(QWidget *parent);
void InitImgui(std::shared_ptr<Vulkan::WSI> &wsi);
[[nodiscard]] QPaintEngine *paintEngine() const override { return nullptr; }
std::unique_ptr<ParallelRDP::WindowInfo> windowInfo;
std::unique_ptr<Vulkan::WSIPlatform> wsiPlatform;
std::unique_ptr<QtInstanceFactory> instance;
std::shared_ptr<ParallelRDP::WindowInfo> windowInfo;
std::shared_ptr<Vulkan::WSIPlatform> wsiPlatform;
std::shared_ptr<QtInstanceFactory> instance;
Q_SIGNALS:
void Show() { show(); }
void Hide() { hide(); }