5#include <private/qsgnode_p.h>
10 : m_geometry(
QSGGeometry::defaultAttributes_TexturedPoint2D(), 4)
12 , m_isAtlasTexture(
false)
13 , m_ownsTexture(
false)
20#ifdef QSG_RUNTIME_DESCRIPTION
93 if (m_sourceRect ==
r)
119 bool wasAtlas = m_isAtlasTexture;
120 m_isAtlasTexture =
texture->isAtlasTexture();
121 if (wasAtlas || m_isAtlasTexture)
124 if (m_textureSize !=
texture->textureSize())
126 m_textureSize =
texture->textureSize();
137 if (m_texCoordMode ==
mode)
139 m_texCoordMode =
mode;
146 return m_texCoordMode;
151 m_ownsTexture = owns;
156 return m_ownsTexture;
\inmodule QtCore\reentrant
void setGeometry(QSGGeometry *geometry)
Sets the geometry of this node to geometry.
bool ownsTexture() const override
QSGTexture::Filtering filtering() const override
Returns the filtering for this image node.
QSGTexture * texture() const override
Returns the texture for this image node.
QSGTexture::Filtering mipmapFiltering() const override
Returns the mipmap filtering for this image node.
QRectF sourceRect() const override
Returns the source rect of this image node.
void setTextureCoordinatesTransform(TextureCoordinatesTransformMode mode) override
Sets the method used to generate texture coordinates to mode.
QRectF rect() const override
Returns the target rect of this image node.
TextureCoordinatesTransformMode textureCoordinatesTransform() const override
Returns the mode used to generate texture coordinates for this node.
void setSourceRect(const QRectF &r) override
Sets the source rect of this image node to rect.
void setTexture(QSGTexture *texture) override
Sets the texture of this image node to texture.
void setAnisotropyLevel(QSGTexture::AnisotropyLevel level) override
Sets this image node's anistropy level to level.
void setMipmapFiltering(QSGTexture::Filtering filtering) override
Sets the mipmap filtering to be used for this image node to filtering.
void setFiltering(QSGTexture::Filtering filtering) override
Sets the filtering to be used for this image node to filtering.
void setRect(const QRectF &rect) override
Sets the target rect of this image node to rect.
QSGTexture::AnisotropyLevel anisotropyLevel() const override
Returns this image node's anistropy level.
void setOwnsTexture(bool owns) override
Sets whether the node takes ownership of the texture to owns.
void setMaterial(QSGMaterial *material)
Sets the material of this geometry node to material.
void setOpaqueMaterial(QSGMaterial *material)
Sets the opaque material of this geometry to material.
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
static void rebuildGeometry(QSGGeometry *g, QSGTexture *texture, const QRectF &rect, QRectF sourceRect, TextureCoordinatesTransformMode texCoordMode)
Updates the geometry g with the texture, the coordinates in rect, and the texture coordinates from so...
void markDirty(DirtyState bits)
Notifies all connected renderers that the node has dirty bits.
QSGTexture::AnisotropyLevel anisotropyLevel() const
Returns this material's anistropy level.
void setFiltering(QSGTexture::Filtering filteringType)
Sets the filtering to filtering.
void setAnisotropyLevel(QSGTexture::AnisotropyLevel level)
Sets this material's anistropy level to level.
QSGTexture::Filtering filtering() const
Returns this material's filtering mode.
void setMipmapFiltering(QSGTexture::Filtering filteringType)
Sets the mipmap mode to filtering.
void setTexture(QSGTexture *texture)
Sets the texture of this material to texture.
QSGTexture::Filtering mipmapFiltering() const
Returns this material's mipmap filtering mode.
QSGTexture * texture() const
Returns this texture material's texture.
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
AnisotropyLevel
Specifies the anisotropic filtering level to be used when the texture is not screen aligned.
Combined button and popup list for selecting options.
GLenum GLuint GLint level
void qsgnode_set_description(QSGNode *node, const QString &description)
QLatin1StringView QLatin1String