The QSGDynamicTexture class serves as a baseclass for dynamically changing textures,...
virtual bool updateTexture()=0
Call this function to explicitly update the dynamic texture.
~QSGDynamicTexture() override
QSGDynamicTexture()=default
virtual bool hasMipmaps() const =0
Returns true if the texture data contains mipmap levels.
virtual QRectF normalizedTextureSubRect() const
Returns the rectangle inside textureSize() that this texture represents in normalized coordinates.
virtual bool hasAlphaChannel() const =0
Returns true if the texture data contains an alpha channel.
virtual QSize textureSize() const =0
Returns the size of the texture in pixels.
QRectF convertToNormalizedSourceRect(const QRectF &rect) const
Returns rect converted to normalized coordinates.
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
WrapMode
Specifies how the sampler should treat texture coordinates.
AnisotropyLevel
Specifies the anisotropic filtering level to be used when the texture is not screen aligned.
virtual qint64 comparisonKey() const =0
Returns a key suitable for comparing textures.