QTextureWrapMode Class

( Qt3DRender::QTextureWrapMode )

Defines the wrap mode a Qt3DRender::QAbstractTexture should apply to a texture. 更多...

头: #include <QTextureWrapMode>
qmake: QT += 3drender
Since: Qt 5.5
继承: QObject

公共类型

enum WrapMode { Repeat, MirroredRepeat, ClampToEdge, ClampToBorder }

特性

公共函数

QTextureWrapMode (WrapMode wrapMode = ClampToEdge, QObject * parent = nullptr)
QTextureWrapMode (WrapMode x , WrapMode y , WrapMode z , QObject * parent = nullptr)
WrapMode x () const
WrapMode y () const
WrapMode z () const

公共槽

void setX (WrapMode x )
void setY (WrapMode y )
void setZ (WrapMode z )

信号

void xChanged (WrapMode x )
void yChanged (WrapMode y )
void zChanged (WrapMode z )

额外继承成员

详细描述

Defines the wrap mode a Qt3DRender::QAbstractTexture should apply to a texture.

成员类型文档编制

enum QTextureWrapMode:: WrapMode

Specifies the type of text wrapping. Possible values:

常量
Qt3DRender::QTextureWrapMode::Repeat 0x2901
Qt3DRender::QTextureWrapMode::MirroredRepeat 0x8370
Qt3DRender::QTextureWrapMode::ClampToEdge 0x812F
Qt3DRender::QTextureWrapMode::ClampToBorder 0x812D

特性文档编制

x : WrapMode

Returns the wrap mode of the x dimension.

访问函数:

WrapMode x () const
void setX (WrapMode x )

通知程序信号:

void xChanged (WrapMode x )

y : WrapMode

Returns the wrap mode of the y dimension.

访问函数:

WrapMode y () const
void setY (WrapMode y )

通知程序信号:

void yChanged (WrapMode y )

z : WrapMode

Returns the wrap mode of the z dimension.

访问函数:

WrapMode z () const
void setZ (WrapMode z )

通知程序信号:

void zChanged (WrapMode z )

成员函数文档编制

QTextureWrapMode:: QTextureWrapMode ( WrapMode wrapMode = ClampToEdge, QObject * parent = nullptr)

Default constructs an instance of QTextureWrapMode.

QTextureWrapMode:: QTextureWrapMode ( WrapMode x , WrapMode y , 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 作为父级。

[slot] void QTextureWrapMode:: setX ( WrapMode x )

Sets the wrap mode of the x dimension to x .

注意: Setter 函数对于特性 x .

另请参阅 x ().

[slot] void QTextureWrapMode:: setY ( 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 ( WrapMode z )

Sets the wrap mode of the z dimension to z .

注意: this is only available on 3D textures.

注意: Setter 函数对于特性 z .

另请参阅 z ().