Defines the wrap mode a Qt3DRender::QAbstractTexture should apply to a texture. 更多...
头: | #include <QTextureWrapMode> |
qmake: | QT += 3drender |
Since: | Qt 5.5 |
继承: | QObject |
该类在 Qt 5.5 引入。
enum | WrapMode { Repeat, MirroredRepeat, ClampToEdge, ClampToBorder } |
QTextureWrapMode (Qt3DRender::QTextureWrapMode::WrapMode x , Qt3DRender::QTextureWrapMode::WrapMode y , Qt3DRender::QTextureWrapMode::WrapMode z , QObject * parent = nullptr) | |
Qt3DRender::QTextureWrapMode::WrapMode | x () const |
Qt3DRender::QTextureWrapMode::WrapMode | y () const |
Qt3DRender::QTextureWrapMode::WrapMode | z () const |
void | setX (Qt3DRender::QTextureWrapMode::WrapMode x ) |
void | setY (Qt3DRender::QTextureWrapMode::WrapMode y ) |
void | setZ (Qt3DRender::QTextureWrapMode::WrapMode z ) |
void | xChanged (Qt3DRender::QTextureWrapMode::WrapMode x ) |
void | yChanged (Qt3DRender::QTextureWrapMode::WrapMode y ) |
void | zChanged (Qt3DRender::QTextureWrapMode::WrapMode z ) |
Specifies the type of text wrapping. Possible values:
常量 | 值 |
---|---|
Qt3DRender::QTextureWrapMode::Repeat
|
0x2901
|
Qt3DRender::QTextureWrapMode::MirroredRepeat
|
0x8370
|
Qt3DRender::QTextureWrapMode::ClampToEdge
|
0x812F
|
Qt3DRender::QTextureWrapMode::ClampToBorder
|
0x812D
|
Returns the wrap mode of the x dimension.
访问函数:
Qt3DRender::QTextureWrapMode::WrapMode | x () const |
void | setX (Qt3DRender::QTextureWrapMode::WrapMode x ) |
通知程序信号:
void | xChanged (Qt3DRender::QTextureWrapMode::WrapMode x ) |
Returns the wrap mode of the y dimension.
访问函数:
Qt3DRender::QTextureWrapMode::WrapMode | y () const |
void | setY (Qt3DRender::QTextureWrapMode::WrapMode y ) |
通知程序信号:
void | yChanged (Qt3DRender::QTextureWrapMode::WrapMode y ) |
Returns the wrap mode of the z dimension.
访问函数:
Qt3DRender::QTextureWrapMode::WrapMode | z () const |
void | setZ (Qt3DRender::QTextureWrapMode::WrapMode z ) |
通知程序信号:
void | zChanged (Qt3DRender::QTextureWrapMode::WrapMode z ) |
Contrusts a new Qt3DRender::QTextureWrapMode instance with the wrap mode to apply to each dimension x , y z of the texture and parent 作为父级。
[slot]
void
QTextureWrapMode::
setX
(
Qt3DRender::QTextureWrapMode::WrapMode
x
)
Sets the wrap mode of the x dimension to x .
注意: setter 函数对于特性 x .
另请参阅 x ().
[slot]
void
QTextureWrapMode::
setY
(
Qt3DRender::QTextureWrapMode::WrapMode
y
)
Sets the wrap mode of the y dimension to y .
注意: this is not available on 1D textures.
注意: setter 函数对于特性 y .
另请参阅 y ().
[slot]
void
QTextureWrapMode::
setZ
(
Qt3DRender::QTextureWrapMode::WrapMode
z
)
Sets the wrap mode of the z dimension to z .
注意: this is only available on 3D textures.
注意: setter 函数对于特性 z .
另请参阅 z ().