6#include <private/qsgnode_p.h>
20 QSGSimpleTextureNode::TextureCoordinatesTransformMode
texCoordMode;
29 QSGSimpleTextureNode::TextureCoordinatesTransformMode texCoordMode)
41 float tmp = sourceRect.
left();
46 float tmp = sourceRect.
top();
76 , m_geometry(
QSGGeometry::defaultAttributes_TexturedPoint2D(), 4)
83#ifdef QSG_RUNTIME_DESCRIPTION
161 if (
d->sourceRect ==
r)
185 return d->sourceRect;
212 bool wasAtlas =
d->isAtlasTexture;
213 d->isAtlasTexture =
texture->isAtlasTexture();
214 if (wasAtlas ||
d->isAtlasTexture)
255 if (
d->texCoordMode ==
mode)
257 d->texCoordMode =
mode;
270 return d->texCoordMode;
285 d->ownsTexture = owns;
296 return d->ownsTexture;
\inmodule QtCore\reentrant
constexpr qreal bottom() const noexcept
Returns the y-coordinate of the rectangle's bottom edge.
constexpr void setBottom(qreal pos) noexcept
Sets the bottom edge of the rectangle to the given finite y coordinate.
constexpr void setRight(qreal pos) noexcept
Sets the right edge of the rectangle to the given finite x coordinate.
constexpr void setLeft(qreal pos) noexcept
Sets the left edge of the rectangle to the given finite x coordinate.
constexpr qreal height() const noexcept
Returns the height of the rectangle.
constexpr qreal width() const noexcept
Returns the width of the rectangle.
constexpr void setTop(qreal pos) noexcept
Sets the top edge of the rectangle to the given finite y coordinate.
constexpr qreal left() const noexcept
Returns the x-coordinate of the rectangle's left edge.
constexpr qreal top() const noexcept
Returns the y-coordinate of the rectangle's top edge.
constexpr qreal right() const noexcept
Returns the x-coordinate of the rectangle's right edge.
void setGeometry(QSGGeometry *geometry)
Sets the geometry of this node to geometry.
The QSGGeometryNode class is used for all rendered content in the scene graph.
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 updateTexturedRectGeometry(QSGGeometry *g, const QRectF &rect, const QRectF &sourceRect)
Updates the geometry g with the coordinates in rect and texture coordinates from textureRect.
void markDirty(DirtyState bits)
Notifies all connected renderers that the node has dirty bits.
void setFiltering(QSGTexture::Filtering filteringType)
Sets the filtering to filtering.
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 * texture() const
Returns this texture material's texture.
QSGSimpleTextureNodePrivate()
QSGSimpleTextureNode::TextureCoordinatesTransformMode texCoordMode
The QSGSimpleTextureNode class is provided for convenience to easily draw textured content using the ...
void setTextureCoordinatesTransform(TextureCoordinatesTransformMode mode)
Sets the method used to generate texture coordinates to mode.
void setRect(const QRectF &rect)
Sets the target rect of this texture node to r.
void setFiltering(QSGTexture::Filtering filtering)
Sets the filtering to be used for this texture node to filtering.
QSGTexture::Filtering filtering() const
Returns the filtering currently set on this texture node.
QSGSimpleTextureNode()
Constructs a new simple texture node.
bool ownsTexture() const
Returns true if the node takes ownership of the texture; otherwise returns false.
void setTexture(QSGTexture *texture)
Sets the texture of this texture node to texture.
QSGTexture * texture() const
Returns the texture for this texture node.
TextureCoordinatesTransformMode textureCoordinatesTransform() const
Returns the mode used to generate texture coordinates for this node.
void setSourceRect(const QRectF &r)
Sets the source rect of this texture node to r.
QRectF rect() const
Returns the target rect of this texture node.
void setOwnsTexture(bool owns)
Sets whether the node takes ownership of the texture to owns.
~QSGSimpleTextureNode() override
Destroys the texture node.
QRectF sourceRect() const
Returns the source rect of this texture node.
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
constexpr int height() const noexcept
Returns the height.
constexpr int width() const noexcept
Returns the width.
Combined button and popup list for selecting options.
void qsgnode_set_description(QSGNode *node, const QString &description)
static void qsgsimpletexturenode_update(QSGGeometry *g, QSGTexture *texture, const QRectF &rect, QRectF sourceRect, QSGSimpleTextureNode::TextureCoordinatesTransformMode texCoordMode)
QLatin1StringView QLatin1String