7#include <QtQuick/qsgnode.h>
8#include <QtQuick/qsgtexture.h>
39 MirrorHorizontally = 0x01,
40 MirrorVertically = 0x02
42 Q_DECLARE_FLAGS(TextureCoordinatesTransformMode, TextureCoordinatesTransformFlag)
44 virtual
void setTextureCoordinatesTransform(TextureCoordinatesTransformMode
mode) = 0;
45 virtual TextureCoordinatesTransformMode textureCoordinatesTransform() const = 0;
47 virtual
void setOwnsTexture(
bool owns) = 0;
48 virtual
bool ownsTexture() const = 0;
54 TextureCoordinatesTransformMode texCoordMode);
\inmodule QtCore\reentrant
The QSGGeometryNode class is used for all rendered content in the scene graph.
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
The QSGImageNode class is provided for convenience to easily draw textured content using the QML scen...
virtual void setSourceRect(const QRectF &r)=0
Sets the source rect of this image node to rect.
TextureCoordinatesTransformFlag
The TextureCoordinatesTransformFlag enum is used to specify the mode used to generate texture coordin...
void setRect(qreal x, qreal y, qreal w, qreal h)
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void setFiltering(QSGTexture::Filtering filtering)=0
Sets the filtering to be used for this image node to filtering.
virtual QSGTexture::AnisotropyLevel anisotropyLevel() const =0
Returns this image node's anistropy level.
virtual QSGTexture::Filtering mipmapFiltering() const =0
Returns the mipmap filtering for this image node.
virtual QRectF rect() const =0
Returns the target rect of this image node.
virtual void setRect(const QRectF &rect)=0
Sets the target rect of this image node to rect.
virtual QSGTexture * texture() const =0
Returns the texture for this image node.
void setSourceRect(qreal x, qreal y, qreal w, qreal h)
This is an overloaded member function, provided for convenience. It differs from the above function o...
~QSGImageNode() override=default
virtual QSGTexture::Filtering filtering() const =0
Returns the filtering for this image node.
virtual void setTexture(QSGTexture *texture)=0
Sets the texture of this image node to texture.
virtual void setMipmapFiltering(QSGTexture::Filtering filtering)=0
Sets the mipmap filtering to be used for this image node to filtering.
virtual void setAnisotropyLevel(QSGTexture::AnisotropyLevel level)=0
Sets this image node's anistropy level to level.
virtual QRectF sourceRect() const =0
Returns the source rect of this image node.
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.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLint GLint GLint GLint GLint x
[0]
GLenum GLuint GLint level
GLfloat GLfloat GLfloat w
[0]
GLfloat GLfloat GLfloat GLfloat h