mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
Add an initial rhi implementation that mimics the opengl implementation
This commit is contained in:
@ -6,7 +6,14 @@
|
||||
#include "pictureflow.h"
|
||||
#include "comic_flow.h"
|
||||
#ifndef NO_OPENGL
|
||||
// Conditional include based on Qt version and RHI availability
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0) && defined(YACREADER_USE_RHI)
|
||||
#include "yacreader_flow_rhi.h"
|
||||
using YACReaderComicFlowImpl = YACReaderComicFlow3D;
|
||||
#else
|
||||
#include "yacreader_flow_gl.h"
|
||||
using YACReaderComicFlowImpl = YACReaderComicFlowGL;
|
||||
#endif
|
||||
#endif
|
||||
class ComicFlowWidget : public QWidget
|
||||
{
|
||||
@ -83,7 +90,7 @@ class ComicFlowWidgetGL : public ComicFlowWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
YACReaderComicFlowGL *flow;
|
||||
YACReaderComicFlowImpl *flow;
|
||||
|
||||
public:
|
||||
ComicFlowWidgetGL(QWidget *parent = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user