20 QSGMaterialType *type()
const override;
22#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
23 QSGMaterialShader *createShader()
const override;
25 QSGMaterialShader *createShader(QSGRendererInterface::RenderMode renderMode)
const override;
27 int compare(
const QSGMaterial *other)
const override;
29 void setMaskTexture(QSGTexture *texture);
30 QSGTexture *maskTexture()
const {
return m_maskTexture.data(); }
32 void setMaskScale(QVector2D maskScale);
33 QVector2D maskScale()
const {
return m_maskScale; }
35 void setMaskOffset(QVector2D maskOffset);
36 QVector2D maskOffset()
const {
return m_maskOffset; }
38 void setSourceScale(QVector2D sourceScale);
39 QVector2D sourceScale()
const {
return m_sourceScale; }
42 QPointer<QSGTexture> m_maskTexture =
nullptr;
43 QVector2D m_maskScale;
44 QVector2D m_maskOffset;
45 QVector2D m_sourceScale;
66 void setRect(
const QRectF &rect)
override;
67 QRectF rect()
const override;
69 void setSourceRect(
const QRectF &r)
override;
70 QRectF sourceRect()
const override;
72 void setTexture(QSGTexture *texture)
override;
73 QSGTexture *texture()
const override;
75 void setFiltering(QSGTexture::Filtering filtering)
override;
76 QSGTexture::Filtering filtering()
const override;
78 void setMipmapFiltering(QSGTexture::Filtering filtering)
override;
79 QSGTexture::Filtering mipmapFiltering()
const override;
81 void setTextureCoordinatesTransform(TextureCoordinatesTransformMode mode)
override;
82 TextureCoordinatesTransformMode textureCoordinatesTransform()
const override;
84 void setOwnsTexture(
bool owns)
override;
85 bool ownsTexture()
const override;
87 void setAnisotropyLevel(QSGTexture::AnisotropyLevel level);
89 void setMaskTexture(QSGTexture *texture);
90 void setMaskScale(QVector2D maskScale);
91 void setMaskOffset(QVector2D maskOffset);
92 void setSourceScale(QVector2D sourceScale);
94 QSGTexture::AnisotropyLevel anisotropyLevel()
const;
96 QSGGeometry m_geometry;
101 TextureCoordinatesTransformMode m_texCoordMode;
102 uint m_isAtlasTexture : 1;
103 uint m_ownsTexture : 1;
Definition dmaskeffectnode_p.h:18
Definition dmaskeffectnode_p.h:49