Add an initial rhi implementation that mimics the opengl implementation

This commit is contained in:
luisangelsm
2026-01-17 22:46:27 +01:00
parent 91b8a31727
commit 3381754c12
25 changed files with 2739 additions and 21 deletions

View File

@ -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);