16 #ifndef QGSPREVIEWQUAD_H
17 #define QGSPREVIEWQUAD_H
19 #include <Qt3DCore/QEntity>
20 #include <Qt3DRender/QMaterial>
21 #include <Qt3DRender/QParameter>
22 #include <Qt3DRender/QEffect>
39 QgsPreviewQuadMaterial( Qt3DRender::QAbstractTexture *texture, QVector<Qt3DRender::QParameter *> additionalShaderParameters = QVector<Qt3DRender::QParameter *>(), QNode *parent =
nullptr );
42 void setViewPort( QVector2D centerTexCoords, QVector2D sizeTexCoords );
44 Qt3DRender::QEffect *mEffect =
nullptr;
45 Qt3DRender::QParameter *mTextureParameter =
nullptr;
46 Qt3DRender::QParameter *mCenterTextureCoords =
nullptr;
47 Qt3DRender::QParameter *mSizeTextureCoords =
nullptr;
73 QgsPreviewQuad( Qt3DRender::QAbstractTexture *texture,
const QPointF ¢erNDC,
const QSizeF &size, QVector<Qt3DRender::QParameter *> additionalShaderParameters = QVector<Qt3DRender::QParameter *>(), Qt3DCore::QEntity *parent =
nullptr );
76 void setViewPort(
const QPointF ¢erNDC,
const QSizeF &size );
81 #endif // QGSPREVIEWQUAD_H