Encapsulates the necessary information to create an OpenGL texture image from an image source. 更多 …
def
isMirrored
()
def
setStatus
(status)
def
source
()
def
status
()
def
setMirrored
(mirrored)
def
setSource
(source)
def
mirroredChanged
(mirrored)
def
sourceChanged
(source)
def
statusChanged
(status)
It contains the necessary information mipmap level, layer, cube face and source URL to load at the proper place data into an OpenGL texture.
PySide2.Qt3DRender.Qt3DRender.
QTextureImage
(
[
parent=None
]
)
¶
- param parent
QNode
构造新
QTextureImage
实例与
parent
作为父级。
PySide2.Qt3DRender.Qt3DRender.QTextureImage.
Status
¶
This enumeration specifies the status values for texture image loading.
|
常量 |
描述 |
|---|---|
|
Qt3DRender.QTextureImage.None |
The texture image loading has not been started yet. |
|
Qt3DRender.QTextureImage.Loading |
The texture image loading has started, but not finised. |
|
Qt3DRender.QTextureImage.Ready |
The texture image loading has finished. |
|
Qt3DRender.QTextureImage.Error |
The texture image loading confronted an error. |
PySide2.Qt3DRender.Qt3DRender.QTextureImage.
isMirrored
(
)
¶
bool
Returns whether mirroring is enabled or not.
PySide2.Qt3DRender.Qt3DRender.QTextureImage.
mirroredChanged
(
mirrored
)
¶
mirrored
–
bool
PySide2.Qt3DRender.Qt3DRender.QTextureImage.
setMirrored
(
mirrored
)
¶
mirrored
–
bool
Sets mirroring to
mirrored
.
注意
This internally triggers a call to update the data generator.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QTextureImage.
setSource
(
source
)
¶
source
–
QUrl
Sets the source url of the texture image to
source
.
注意
This internally triggers a call to update the data generator.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QTextureImage.
setStatus
(
status
)
¶
status
–
Status
Sets the status to
status
.
status
另请参阅
PySide2.Qt3DRender.Qt3DRender.QTextureImage.
source
(
)
¶
QUrl
Returns the source url from which data for the texture image will be loaded.
另请参阅
PySide2.Qt3DRender.Qt3DRender.QTextureImage.
sourceChanged
(
source
)
¶
source
–
QUrl
PySide2.Qt3DRender.Qt3DRender.QTextureImage.
status
(
)
¶
Returns the current status.
另请参阅