QSGImageNode Class
The QSGImageNode class is provided for convenience to easily draw textured content using the QML scene graph. More...
| Header: | #include <QSGImageNode> |
| qmake: | QT += quick |
| Since: | Qt 5.8 |
| Inherits: | QSGGeometryNode |
This class was introduced in Qt 5.8.
Public Types
| enum | TextureCoordinatesTransformFlag { NoTransform, MirrorHorizontally, MirrorVertically } |
Detailed Description
Warning: The image node class must have a texture before being added to the scene graph to be rendered.
Member Type Documentation
enum QSGImageNode::TextureCoordinatesTransformFlag
The TextureCoordinatesTransformFlag enum is used to specify the mode used to generate texture coordinates for a textured quad.
| Constant | Value | Description |
|---|---|---|
QSGImageNode::NoTransform | 0x00 | Texture coordinates are oriented with window coordinates i.e. with origin at top-left. |
QSGImageNode::MirrorHorizontally | 0x01 | Texture coordinates are inverted in the horizontal axis with respect to window coordinates |
QSGImageNode::MirrorVertically | 0x02 | Texture coordinates are inverted in the vertical axis with respect to window coordinates |