mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Extract the comic and page flow classes to their own files
This commit is contained in:
@ -157,6 +157,8 @@ HEADERS += comic_flow.h \
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
|
||||
HEADERS += ../common/rhi/yacreader_flow_rhi.h
|
||||
HEADERS += ../common/rhi/yacreader_comic_flow_rhi.h \
|
||||
../common/rhi/yacreader_page_flow_rhi.h
|
||||
}
|
||||
}
|
||||
|
||||
@ -249,6 +251,8 @@ SOURCES += comic_flow.cpp \
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
|
||||
SOURCES += ../common/rhi/yacreader_flow_rhi.cpp
|
||||
SOURCES += ../common/rhi/yacreader_comic_flow_rhi.cpp \
|
||||
../common/rhi/yacreader_page_flow_rhi.cpp
|
||||
RESOURCES += ../common/rhi/shaders/shaders.qrc
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#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"
|
||||
#include "yacreader_comic_flow_rhi.h"
|
||||
using YACReaderComicFlowImpl = YACReaderComicFlow3D;
|
||||
#else
|
||||
#include "yacreader_flow_gl.h"
|
||||
|
||||
Reference in New Issue
Block a user