内容表

上一话题

Qt3DRender.QTextureGenerator

下一话题

Qt3DRender.QTextureImageData

Qt3DRender.QTextureImage

Encapsulates the necessary information to create an OpenGL texture image from an image source. 更多

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QTextureImage

概要

函数

信号

详细描述

It contains the necessary information mipmap level, layer, cube face and source URL to load at the proper place data into an OpenGL texture.

class 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.

另请参阅

isMirrored()

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.

另请参阅

source()

PySide2.Qt3DRender.Qt3DRender.QTextureImage. setStatus ( status )
参数

status Status

Sets the status to status . status

另请参阅

status()

PySide2.Qt3DRender.Qt3DRender.QTextureImage. source ( )
返回类型

QUrl

Returns the source url from which data for the texture image will be loaded.

另请参阅

setSource()

PySide2.Qt3DRender.Qt3DRender.QTextureImage. sourceChanged ( source )
参数

source QUrl

PySide2.Qt3DRender.Qt3DRender.QTextureImage. status ( )
返回类型

Status

Returns the current status.

另请参阅

setStatus()

PySide2.Qt3DRender.Qt3DRender.QTextureImage. statusChanged ( status )
参数

status Status