qt: add Direct3D 9 renderer

This commit is contained in:
Cacodemon345
2022-06-22 16:36:38 +06:00
parent f17888c4d6
commit 32b29e91ee
9 changed files with 302 additions and 8 deletions

View File

@@ -45,7 +45,8 @@ public:
OpenGL,
OpenGLES,
OpenGL3,
Vulkan
Vulkan,
Direct3D9
};
void switchRenderer(Renderer renderer);
@@ -72,10 +73,12 @@ public:
signals:
void blitToRenderer(int buf_idx, int x, int y, int w, int h);
void blit(int x, int y, int w, int h);
void rendererChanged();
public slots:
void blit(int x, int y, int w, int h);
void blitCommon(int x, int y, int w, int h);
void blitRenderer(int x, int y, int w, int h);
void mousePoll();
private:
@@ -98,6 +101,7 @@ private:
RendererCommon *rendererWindow { nullptr };
std::unique_ptr<QWidget> current;
std::atomic<bool> directBlitting{false};
};
#endif // QT_RENDERERCONTAINER_HPP