QTextureWrapMode Class
class Qt3DRender::QTextureWrapModeDefines the wrap mode a Qt3DRender::QAbstractTexture should apply to a texture. More...
Header: | #include <QTextureWrapMode> |
qmake: | QT += 3drender |
Since: | Qt 5.5 |
This class was introduced in Qt 5.5.
Public Types
enum | WrapMode { Repeat, MirroredRepeat, ClampToEdge, ClampToBorder } |
Public Functions
QTextureWrapMode(Qt3DRender::QTextureWrapMode::WrapMode x, Qt3DRender::QTextureWrapMode::WrapMode y, Qt3DRender::QTextureWrapMode::WrapMode z, QObject *parent = nullptr) | |
void | setX(Qt3DRender::QTextureWrapMode::WrapMode x) |
void | setY(Qt3DRender::QTextureWrapMode::WrapMode y) |
void | setZ(Qt3DRender::QTextureWrapMode::WrapMode z) |
Detailed Description
Member Type Documentation
enum QTextureWrapMode::WrapMode
Specifies the type of text wrapping. Possible values:
Constant | Value |
---|---|
Qt3DRender::QTextureWrapMode::Repeat | 0x2901 |
Qt3DRender::QTextureWrapMode::MirroredRepeat | 0x8370 |
Qt3DRender::QTextureWrapMode::ClampToEdge | 0x812F |
Qt3DRender::QTextureWrapMode::ClampToBorder | 0x812D |
Member Function Documentation
QTextureWrapMode::QTextureWrapMode(Qt3DRender::QTextureWrapMode::WrapMode x, Qt3DRender::QTextureWrapMode::WrapMode y, Qt3DRender::QTextureWrapMode::WrapMode z, QObject *parent = nullptr)
Contrusts a new Qt3DRender::QTextureWrapMode instance with the wrap mode to apply to each dimension x, y z of the texture and parent as parent.
void QTextureWrapMode::setX(Qt3DRender::QTextureWrapMode::WrapMode x)
Sets the wrap mode of the x dimension to x.
void QTextureWrapMode::setY(Qt3DRender::QTextureWrapMode::WrapMode y)
Sets the wrap mode of the y dimension to y.
Note: this is not available on 1D textures.
void QTextureWrapMode::setZ(Qt3DRender::QTextureWrapMode::WrapMode z)
Sets the wrap mode of the z dimension to z.
Note: this is only available on 3D textures.