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.
| Constant | Value | Description |
|---|---|---|
QSGSimpleTextureNode::NoTransform | 0x00 | Texture coordinates are oriented with window coordinates i.e. with origin at top-left. |
QSGSimpleTextureNode::MirrorHorizontally | 0x01 | Texture coordinates are inverted in the horizontal axis with respect to window coordinates |
QSGSimpleTextureNode::MirrorVertically | 0x02 | Texture coordinates are inverted in the vertical axis with respect to window coordinates |