QSGSimpleTextureNode Class

The QSGSimpleTextureNode class is provided for convenience to easily draw textured content using the QML scene graph. More...

Header: #include <QSGSimpleTextureNode>
qmake: QT += quick
Inherits: QSGGeometryNode

This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Public Types

enum TextureCoordinatesTransformFlag { NoTransform, MirrorHorizontally, MirrorVertically }

Detailed Description

Warning: The simple texture node class must have a texture before being added to the scene graph to be rendered.

Warning: This utility class is only functional when running with the default or software backends of the Qt Quick scenegraph. As an alternative, prefer using QSGImageNode via QQuickWindow::createImageNode() or QSGEngine::createImageNode().

Member Type Documentation

enum QSGSimpleTextureNode::TextureCoordinatesTransformFlag

The TextureCoordinatesTransformFlag enum is used to specify the mode used to generate texture coordinates for a textured quad.

ConstantValueDescription
QSGSimpleTextureNode::NoTransform0x00Texture coordinates are oriented with window coordinates i.e. with origin at top-left.
QSGSimpleTextureNode::MirrorHorizontally0x01Texture coordinates are inverted in the horizontal axis with respect to window coordinates
QSGSimpleTextureNode::MirrorVertically0x02Texture coordinates are inverted in the vertical axis with respect to window coordinates