21 QSGMaterialType *type()
const override;
23#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
24 QSGMaterialShader *createShader()
const override;
26 QSGMaterialShader *createShader(QSGRendererInterface::RenderMode renderMode)
const override;
28 int compare(
const QSGMaterial *other)
const override;
30 void setMaskTexture(QSGTexture *texture);
31 QSGTexture *maskTexture()
const {
return m_maskTexture.data(); }
33 void setMaskScale(QVector2D maskScale);
34 QVector2D maskScale()
const {
return m_maskScale; }
36 void setMaskOffset(QVector2D maskOffset);
37 QVector2D maskOffset()
const {
return m_maskOffset; }
39 void setSourceScale(QVector2D sourceScale);
40 QVector2D sourceScale()
const {
return m_sourceScale; }
42#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
43 QSGMaterialShader::GraphicsPipelineState::BlendFactor blendSrcColor()
const
44 {
return m_blendSrcColor; }
46 QSGMaterialShader::GraphicsPipelineState::BlendFactor blendDstColor()
const
47 {
return m_blendDstColor; }
49 void setBlendSrcColor(QSGMaterialShader::GraphicsPipelineState::BlendFactor factor);
50 void setBlendDstColor(QSGMaterialShader::GraphicsPipelineState::BlendFactor factor);
54 QPointer<QSGTexture> m_maskTexture =
nullptr;
55 QVector2D m_maskScale;
56 QVector2D m_maskOffset;
57 QVector2D m_sourceScale;
58#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
59 QSGMaterialShader::GraphicsPipelineState::BlendFactor m_blendSrcColor = QSGMaterialShader::GraphicsPipelineState::One;
60 QSGMaterialShader::GraphicsPipelineState::BlendFactor m_blendDstColor = QSGMaterialShader::GraphicsPipelineState::OneMinusSrcAlpha;
82 void setRect(
const QRectF &rect)
override;
83 QRectF rect()
const override;
85 void setSourceRect(
const QRectF &r)
override;
86 QRectF sourceRect()
const override;
88 void setTexture(QSGTexture *texture)
override;
89 QSGTexture *texture()
const override;
91 void setFiltering(QSGTexture::Filtering filtering)
override;
92 QSGTexture::Filtering filtering()
const override;
94 void setMipmapFiltering(QSGTexture::Filtering filtering)
override;
95 QSGTexture::Filtering mipmapFiltering()
const override;
97 void setTextureCoordinatesTransform(TextureCoordinatesTransformMode mode)
override;
98 TextureCoordinatesTransformMode textureCoordinatesTransform()
const override;
100 void setOwnsTexture(
bool owns)
override;
101 bool ownsTexture()
const override;
103 void setAnisotropyLevel(QSGTexture::AnisotropyLevel level);
105 void setMaskTexture(QSGTexture *texture);
106 void setMaskScale(QVector2D maskScale);
107 void setMaskOffset(QVector2D maskOffset);
108 void setSourceScale(QVector2D sourceScale);
109#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
110 void setCompositionMode(QPainter::CompositionMode mode);
113 QSGTexture::AnisotropyLevel anisotropyLevel()
const;
115 QSGGeometry m_geometry;
120 TextureCoordinatesTransformMode m_texCoordMode;
121#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
122 QPainter::CompositionMode m_compositionMode = QPainter::CompositionMode_SourceOver;
125 uint m_isAtlasTexture : 1;
126 uint m_ownsTexture : 1;
Definition dmaskeffectnode_p.h:19
Definition dmaskeffectnode_p.h:65