- class QAbstractTexture#
用于提供纹理的基类。 更多…
继承自:
QTextureRectangle,QTextureLoader,QTextureCubeMapArray,QTextureCubeMap,QTextureBuffer,QTexture3D,QTexture2DMultisampleArray,QTexture2DMultisample,QTexture2DArray,QTexture2D,QTexture1DArray,QTexture1D,QSharedGLTexture概述#
属性#
方法#
def
__init__()def
comparisonMode()def
depth()def
format()def
handle()def
handleType()定义
height()定义
layers()定义
mipLevels()定义
samples()定义
setHandle()定义
setSize()定义
setStatus()定义
status()定义
target()定义
updateData()定义
width()定义
wrapMode()
槽函数#
信号#
注释
本文档可能包含从C++自动翻译成Python的片段。我们始终欢迎对片段翻译的贡献。如果您发现翻译有问题,也可以通过在https:/bugreports.qt.io/projects/PYSIDE创建工单来告诉我们。
详细说明#
QAbstractTexture类不应该直接使用,而应该通过其子类之一使用。每个子类实现了特定的纹理目标(2D、2DArray、3D、CubeMap等)。每个子类提供了一组用于每层、立方图面和Mipmap级别的函数。然后,后端使用这些函数来正确填充相应OpenGL纹理中的数据。期望函数尽可能少地处理,以免减慢纹理的生成和上传。如果纹理内容是缓慢的进程生成的结果,建议不要直接在函数中实现此操作。所有纹理都是唯一的。如果您实例化两次相同的纹理,这将在GPU上创建两个相同的纹理,不会发生共享。
- class Status#
包含纹理提供者的状态。
常量
描述
Qt3DRender.QAbstractTexture.None
Qt3DRender.QAbstractTexture.Loading
Qt3DRender.QAbstractTexture.Ready
Qt3DRender.QAbstractTexture.Error
- class Target#
常量
描述
Qt3DRender.QAbstractTexture.TargetAutomatic
目标将由Qt3D引擎确定
Qt3DRender.QAbstractTexture.Target1D
GL_TEXTURE_1D
Qt3DRender.QAbstractTexture.Target1DArray
GL_TEXTURE_1D_ARRAY
Qt3DRender.QAbstractTexture.Target2D
GL_TEXTURE_2D
Qt3DRender.QAbstractTexture.Target2DArray
GL_TEXTURE_2D_ARRAY
Qt3DRender.QAbstractTexture.Target3D
GL_TEXTURE_3D
Qt3DRender.QAbstractTexture.TargetCubeMap
GL_TEXTURE_CUBE_MAP
Qt3DRender.QAbstractTexture.TargetCubeMapArray
GL_TEXTURE_CUBE_MAP_ARRAY
Qt3DRender.QAbstractTexture.Target2DMultisample
GL_TEXTURE_2D_MULTISAMPLE
Qt3DRender.QAbstractTexture.Target2DMultisampleArray
GL_TEXTURE_2D_MULTISAMPLE_ARRAY
Qt3DRender.QAbstractTexture.TargetRectangle
GL_TEXTURE_RECTANGLE
Qt3DRender.QAbstractTexture.TargetBuffer
GL_TEXTURE_BUFFER
- class TextureFormat#
此列表描述了所有可能的纹理格式
常量
描述
Qt3DRender.QAbstractTexture.NoFormat
GL_NONE
Qt3DRender.QAbstractTexture.Automatic
自动确定格式
Qt3DRender.QAbstractTexture.R8_UNorm
GL_R8
Qt3DRender.QAbstractTexture.RG8_UNorm
GL_RG8
Qt3D渲染.QAbstractTexture.RGB8_UNorm
GL_RGB8
Qt3D渲染.QAbstractTexture.RGBA8_UNorm
GL_RGBA8
Qt3D渲染.QAbstractTexture.R16_UNorm
GL_R16
Qt3D渲染.QAbstractTexture.RG16_UNorm
GL_RG16
Qt3D渲染.QAbstractTexture.RGB16_UNorm
GL_RGB16
Qt3D渲染.QAbstractTexture.RGBA16_UNorm
GL_RGBA16
Qt3D渲染.QAbstractTexture.R8_SNorm
GL_R8_SNORM
Qt3D渲染.QAbstractTexture.RG8_SNorm
GL_RG8_SNORM
Qt3D渲染.QAbstractTexture.RGB8_SNorm
GL_RGB8_SNORM
Qt3D渲染.QAbstractTexture.RGBA8_SNorm
GL_RGBA8_SNORM
Qt3D渲染.QAbstractTexture.R16_SNorm
GL_R16_SNORM
Qt3D渲染.QAbstractTexture.RG16_SNorm
GL_RG16_SNORM
Qt3D渲染.QAbstractTexture.RGB16_SNorm
GL_RGB16_SNORM
Qt3D渲染.QAbstractTexture.RGBA16_SNorm
GL_RGBA16_SNORM
Qt3D渲染.QAbstractTexture.R8U
GL_R8UI
Qt3D渲染.QAbstractTexture.RG8U
GL_RG8UI
Qt3D渲染.QAbstractTexture.RGB8U
GL_RGB8UI
Qt3D渲染.QAbstractTexture.RGBA8U
GL_RGBA8UI
Qt3D渲染.QAbstractTexture.R16U
GL_R16UI
Qt3D渲染.QAbstractTexture.RG16U
GL_RG16UI
Qt3D渲染.QAbstractTexture.RGB16U
GL_RGB16UI
Qt3D渲染.QAbstractTexture.RGBA16U
GL_RGBA16UI
Qt3D渲染.QAbstractTexture.R32U
GL_R32UI
Qt3D渲染.QAbstractTexture.RG32U
GL_RG32UI
Qt3D渲染.QAbstractTexture.RGB32U
GL_RGB32UI
Qt3D渲染.QAbstractTexture.RGBA32U
GL_RGBA32UI
Qt3D渲染.QAbstractTexture.R8I
GL_R8I
Qt3D渲染.QAbstractTexture.RG8I
GL_RG8I
Qt3D渲染.QAbstractTexture.RGB8I
GL_RGB8I
Qt3D渲染.QAbstractTexture.RGBA8I
GL_RGBA8I
Qt3D渲染.QAbstractTexture.R16I
GL_R16I
Qt3D渲染.QAbstractTexture.RG16I
GL_RG16I
Qt3D渲染.QAbstractTexture.RGB16I
GL_RGB16I
Qt3D渲染.QAbstractTexture.RGBA16I
GL_RGBA16I
Qt3D渲染.QAbstractTexture.R32I
GL_R32I
Qt3D渲染.QAbstractTexture.RG32I
GL_RG32I
Qt3D渲染.QAbstractTexture.RGB32I
GL_RGB32I
Qt3D渲染.QAbstractTexture.RGBA32I
GL_RGBA32I
Qt3D渲染.QAbstractTexture.R16F
GL_R16F
Qt3D渲染.QAbstractTexture.RG16F
GL_RG16F
Qt3D渲染.QAbstractTexture.RGB16F
GL_RGB16F
Qt3D渲染.QAbstractTexture.RGBA16F
GL_RGBA16F
Qt3D渲染.QAbstractTexture.R32F
GL_R32F
Qt3D渲染.QAbstractTexture.RG32F
GL_RG32F
Qt3D渲染.QAbstractTexture.RGB32F
GL_RGB32F
Qt3D渲染.QAbstractTexture.RGBA32F
GL_RGBA32F
Qt3D渲染.QAbstractTexture.RGB9E5
GL_RGB9_E5
Qt3D渲染.QAbstractTexture.RG11B10F
GL_R11F_G11F_B10F
Qt3D渲染.QAbstractTexture.RG3B2
GL_R3_G3_B2
Qt3D渲染.QAbstractTexture.R5G6B5
GL_RGB565
Qt3D渲染.QAbstractTexture.RGB5A1
GL_RGB5_A1
Qt3D渲染.QAbstractTexture.RGBA4
GL_RGBA4
Qt3D渲染.QAbstractTexture.RGB10A2
GL_RGB10_A2
Qt3D渲染.QAbstractTexture.RGB10A2U
GL_RGB10_A2UI
Qt3D渲染.QAbstractTexture.D16
GL_DEPTH_COMPONENT16
Qt3D渲染.QAbstractTexture.D24
GL_DEPTH_COMPONENT24
Qt3D渲染.QAbstractTexture.D24S8
GL_DEPTH24_STENCIL8
Qt3D渲染.QAbstractTexture.D32
GL_DEPTH_COMPONENT32
Qt3D渲染.QAbstractTexture.D32F
GL_DEPTH_COMPONENT32F
Qt3D渲染.QAbstractTexture.D32FS8X24
GL_DEPTH32F_STENCIL8
Qt3D渲染.QAbstractTexture.RGB_DXT1
GL_COMPRESSED_RGB_S3TC_DXT1_EXT
Qt3D渲染.QAbstractTexture.RGBA_DXT1
GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
Qt3D渲染.QAbstractTexture.RGBA_DXT3
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
Qt3D渲染.QAbstractTexture.RGBA_DXT5
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
Qt3D渲染.QAbstractTexture.R_ATI1N_UNorm
GL_COMPRESSED_RED_RGTC1
Qt3D渲染.QAbstractTexture.R_ATI1N_SNorm
GL_COMPRESSED_SIGNED_RED_RGTC1
Qt3D渲染.QAbstractTexture.RG_ATI2N_UNorm
GL_COMPRESSED_RG_RGTC2
Qt3D渲染.QAbstractTexture.RG_ATI2N_SNorm
GL_COMPRESSED_SIGNED_RG_RGTC2
Qt3D渲染.QAbstractTexture.RGB_BP_UNSIGNED_FLOAT
GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB
Qt3D渲染.QAbstractTexture.RGB_BP_SIGNED_FLOAT
GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB
Qt3D渲染.QAbstractTexture.RGB_BP_UNorm
GL_COMPRESSED_RGBA_BPTC_UNORM_ARB
Qt3D渲染.QAbstractTexture.R11_EAC_UNorm
GL_COMPRESSED_R11_EAC
Qt3D渲染.QAbstractTexture.R11_EAC_SNorm
GL_COMPRESSED_SIGNED_R11_EAC
Qt3D渲染.QAbstractTexture.RG11_EAC_UNorm
GL_COMPRESSED_RG11_EAC
Qt3D渲染.QAbstractTexture.RG11_EAC_SNorm
GL_COMPRESSED_SIGNED_RG11_EAC
Qt3D渲染.QAbstractTexture.RGB8_ETC2
GL_COMPRESSED_RGB8_ETC2
Qt3D渲染.QAbstractTexture.SRGB8_ETC2
GL_COMPRESSED_SRGB8_ETC2
Qt3D渲染.QAbstractTexture.RGB8_PunchThrough_Alpha1_ETC2
GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
Qt3D渲染.QAbstractTexture.SRGB8_PunchThrough_Alpha1_ETC2
GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
Qt3DRender.QAbstractTexture.RGBA8_ETC2_EAC
GL_COMPRESSED_RGBA8_ETC2_EAC
Qt3DRender.QAbstractTexture.SRGB8_Alpha8_ETC2_EAC
GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC
Qt3DRender.QAbstractTexture.RGB8_ETC1
GL_ETC1_RGB8_OES
Qt3DRender.QAbstractTexture.SRGB8
GL_SRGB8
Qt3DRender.QAbstractTexture.SRGB8_Alpha8
GL_SRGB8_ALPHA8
Qt3DRender.QAbstractTexture.SRGB_DXT1
GL_COMPRESSED_SRGB_S3TC_DXT1_EXT
Qt3DRender.QAbstractTexture.SRGB_Alpha_DXT1
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT
Qt3DRender.QAbstractTexture.SRGB_Alpha_DXT3
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT
Qt3DRender.QAbstractTexture.SRGB_Alpha_DXT5
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT
Qt3DRender.QAbstractTexture.SRGB BP_UNorm
GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB
Qt3DRender.QAbstractTexture.DepthFormat
GL_DEPTH_COMPONENT
Qt3DRender.QAbstractTexture.AlphaFormat
GL_ALPHA
Qt3DRender.QAbstractTexture.RGBFormat
GL_RGB
Qt3DRender.QAbstractTexture.RGBAFormat
GL_RGBA
Qt3DRender.QAbstractTexture.LuminanceFormat
GL_LUMINANCE
Qt3DRender.QAbstractTexture.LuminanceAlphaFormat
0x190A
- class Filter#
用于存储纹理提供者的过滤器类型。
常量
描述
Qt3DRender.QAbstractTexture.Nearest
GL_NEAREST
Qt3DRender.QAbstractTexture.Linear
GL_LINEAR
Qt3DRender.QAbstractTexture.NearestMipMapNearest
GL_NEAREST_MIPMAP_NEAREST
Qt3DRender.QAbstractTexture.NearestMipMapLinear
GL_NEAREST_MIPMAP_LINEAR
Qt3DRender.QAbstractTexture.LinearMipMapNearest
GL_LINEAR_MIPMAP_NEAREST
Qt3DRender.QAbstractTexture.LinearMipMapLinear
GL_LINEAR_MIPMAP_LINEAR
- class CubeMapFace#
此枚举标识立方体贴图纹理的各个面
常量
描述
Qt3DRender.QAbstractTexture.CubeMapPositiveX
指定立方体贴图的正X面
Qt3DRender.QAbstractTexture.CubeMapNegativeX
指定立方体贴图的负X面
Qt3DRender.QAbstractTexture.CubeMapPositiveY
指定立方体贴图的正Y面
Qt3DRender.QAbstractTexture.CubeMapNegativeY
指定立方体贴图的负Y面
Qt3DRender.QAbstractTexture.CubeMapPositiveZ
指定立方体贴图的正Z面
Qt3DRender.QAbstractTexture.CubeMapNegativeZ
指定立方体贴图的负Z面
Qt3DRender.QAbstractTexture.AllFaces
指定立方体贴图的各个面
注释
当需要将行为应用于立方体贴图的各个面时,应仅使用AllFaces。例如,当使用立方体贴图作为纹理附加项时,会绑定所有面到附加点。另方面,指定特定面时,附加项仅使用指定的面。
- class ComparisonFunction#
- class ComparisonMode#
- class HandleType#
注释
可以在使用从
__feature__ import true_property时直接使用属性,否则通过访问器函数。- property comparisonFunctionᅟ: Qt3DRender.QAbstractTexture.ComparisonFunction#
存储纹理提供者的比较函数。
- 属性 comparisonMode: Qt3DRender.QAbstractTexture.ComparisonMode#
存储纹理提供者的比较模式。
- 属性 depth: int#
存储纹理提供者的深度。
- 访问函数
- 属性 format: Qt3DRender.QAbstractTexture.TextureFormat#
存储纹理提供者的格式。
- 访问函数
- 属性 generateMipMaps: bool#
存储纹理提供者是否应该自动生成MIP贴图。
- 属性 handle: object#
存储当前的纹理句柄,如果Qt 3D使用OpenGL渲染器,则句柄是纹理ID整数。
- 访问函数
- 属性 handleType: Qt3DRender.QAbstractTexture.HandleType#
存储当前纹理句柄类型。
- 访问函数
- 属性 height: int#
保存纹理提供者的高度。
- 访问函数
- 属性 layers: int#
保存纹理提供者的最大层数。默认最大层数为1。
注释
这对于具有3D或数组目标格式的纹理提供者才有意义。
- 访问函数
- 属性 magnificationFilter: Qt3DRender.QAbstractTexture.Filter#
保存纹理提供者的放大过滤器。
- 属性 maximumAnisotropy: float#
保存纹理提供者的最大各向异性。
- 属性 minificationFilter: Qt3DRender.QAbstractTexture.Filter#
保存纹理提供者的缩小过滤器。
- 属性 mipLevels: int#
保存纹理提供者的mipmap级别。
- 属性 samples: int#
包含每个纹理单元的样本数。默认情况下,样本数为1。
注释
此属性仅在具有多重采样格式的纹理供应商中才有意义。
- 访问函数
- 属性 status: Qt3DRender.QAbstractTexture.Status#
包含纹理供应商当前的状态。
- 访问函数
- 属性 target: Qt3DRender.QAbstractTexture.Target#
包含纹理供应商的目标格式。
注释
目标格式只能设置一次。
- 访问函数
- 属性 width: int#
包含纹理供应商的宽度。
- 访问函数
- 属性 wrapMode: QTextureWrapMode#
包含纹理供应商的包装模式。
- 访问函数
- __init__(target[, parent=None])#
- 参数:
target –
Targetparent –
QNode
构造函数创建一个新的
QAbstractTexture实例,带指定的target和parent。- __init__([parent=None])
- 参数:
parent –
QNode
构造函数创建一个新的
QAbstractTexture实例,带指定的parent。- addTextureImage(textureImage)#
- 参数:
textureImage –
QAbstractTextureImage
向纹理提供者添加一个新的 Qt3DCore::QAbstractTextureImage 类型的
textureImage注释
QAbstractTextureImage不应该在不同QAbstractTexture实例之间共享。- comparisonFunction()#
- 返回类型:
ComparisonFunction
返回当前的比较函数。
另请参阅
setComparisonFunction()属性
comparisonFunction的获取器。- comparisonFunctionChanged(comparisonFunction)#
- 参数:
comparisonFunction –
ComparisonFunction
属性
comparisonFunction的通知信号。- comparisonMode()#
- 返回类型:
ComparisonMode
返回当前的比较模式。
另请参阅
setComparisonMode()属性
comparisonMode的获取器。- comparisonModeChanged(comparisonMode)#
- 参数:
comparisonMode –
ComparisonMode
属性
comparisonMode的通知信号。- depth()#
- 返回类型:
int
返回纹理的深度。
另请参阅
setDepth()属性
depth的获取器。- depthChanged(depth)#
- 参数:
depth – int
属性
depth的通知信号。- format()#
- 返回类型:
TextureFormat
返回纹理提供者的格式。
另请参阅
setFormat()属性
format的获取器。- formatChanged(format)#
- 参数:
format –
TextureFormat
属性
format的通知信号。- generateMipMaps()#
- 返回类型:
bool
另请参阅
setGenerateMipMaps()
属性
generateMipMaps的获取器。- generateMipMapsChanged(generateMipMaps)#
- 参数:
generateMipMaps – bool
属性
generateMipMaps的通知信号。- handle()#
- 返回类型:
object
如果 Qt 3D 正在使用 OpenGL 渲染器,返回当前的纹理句柄,句柄是整数类型的纹理 ID。
属性
handle的获取器。- handleChanged(handle)#
- 参数:
handle – object
属性
handle的通知信号。- handleType()#
- 返回类型:
HandleType
返回当前的纹理句柄类型。
属性
handleType的获取器。- handleTypeChanged(handleType)#
- 参数:
handleType –
HandleType
属性
handleType的通知信号。- height()#
- 返回类型:
int
返回纹理的高度
另请参阅
setHeight()属性
height的获取器。- heightChanged(高度)#
- 参数:
高度 – int
属性
height的通知信号。- layers()#
- 返回类型:
int
返回纹理提供程序的最大层级数。
注释
这对于具有3D或数组目标格式的纹理提供者才有意义。
另请参阅
setLayers()属性
layers的获取器。- layersChanged(layers)#
- 参数:
layers – int
属性
layers的通知信号。- magnificationFilter()#
- 返回类型:
过滤器
另请参阅
setMagnificationFilter()
属性
magnificationFilter的获取器。- magnificationFilterChanged(magnificationFilter)#
- 参数:
magnificationFilter –
Filter
属性
magnificationFilter的通知信号。- maximumAnisotropy()#
- 返回类型:
float
返回当前最大各向异性。
另请参阅
setMaximumAnisotropy()属性
maximumAnisotropy的获取器。- maximumAnisotropyChanged(maximumAnisotropy)#
- 参数:
maximumAnisotropy – float
属性
maximumAnisotropy的通知信号。- minificationFilter()#
- 返回类型:
过滤器
另请参阅
setMinificationFilter()
属性
minificationFilter的获取器。- minificationFilterChanged(minificationFilter)#
- 参数:
minificationFilter –
Filter
属性
minificationFilter的通知信号。- mipLevels()#
- 返回类型:
int
另请参阅
setMipLevels()
属性
mipLevelsᅟ的获取器。- mipLevelsChanged(mipLevels)#
- 参数:
mipLevels – 整数
属性
mipLevelsᅟ的通知信号。- removeTextureImage(textureImage)#
- 参数:
textureImage –
QAbstractTextureImage
从纹理提供器中移除一个 Qt3DCore::QAbstractTextureImage 纹理图像。
- samples()#
- 返回类型:
int
返回纹理提供器每 texel 的样本数。
注释
此属性仅在具有多重采样格式的纹理供应商中才有意义。
另请参阅
setSamples()属性
samplesᅟ的获取器。- samplesChanged(samples)#
- 参数:
samples – 整数
属性
samplesᅟ的通知信号。- setComparisonFunction(function)#
- 参数:
function –
ComparisonFunction
设置比较函数为
function。另请参阅
comparisonFunction()属性
comparisonFunctionᅟ的设置器。- setComparisonMode(mode)#
- 参数:
mode –
ComparisonMode
设置比较模式为
mode。另请参阅
comparisonMode()属性
comparisonModeᅟ的设置器。- setDepth(depth)#
- 参数:
depth – int
设置纹理的深度为
depth。另请参阅
depth()属性
depthᅟ的设置器。- setFormat(format)#
- 参数:
format –
TextureFormat
设置纹理的格式为
format。另请参阅
format()属性
format的设置器。- setGenerateMipMaps(gen)#
- 参数:
gen – bool
布尔参数
gen设置一个标志,指示纹理提供器是否应生成米柏。另请参阅
generateMipMaps()属性
generateMipMaps的设置器。- setHandle(handle)#
- 参数:
handle – object
- setHandleType(type)#
- 参数:
type –
HandleType
- setHeight(height)#
- 参数:
高度 – int
设置高度为
height。另请参阅
height()属性
height的设置器。- setLayers(layers)#
- 参数:
layers – int
将最大层数设置为
layers。另请参阅
layers()属性
layers的设置器。- setMagnificationFilter(f)#
- 参数:
f –
Filter
将放大过滤器设置为
f。另请参阅
magnificationFilter()属性
magnificationFilter的设置器。- setMaximumAnisotropy(anisotropy)#
- 参数:
anisotropy – float
设置最大各向异性为
anisotropy。另请参阅
maximumAnisotropy()属性
maximumAnisotropy属性的设置器。- setMinificationFilter(f)#
- 参数:
f –
Filter
将最小化过滤器设置为指定的值
f。另请参阅
minificationFilter()属性
minificationFilter属性的设置器。- setMipLevels(mipLevels)#
- 参数:
mipLevels – 整数
另请参阅
mipLevels()
属性
mipLevels属性的设置器。- setSamples(samples)#
- 参数:
samples – 整数
将每个纹理素(texel)的样本数设置为
samples。另请参阅
samples()属性
samples属性的设置器。- setSize(width[, height=1[, depth=1]])#
- 参数:
width – int
高度 – int
depth – int
设置纹理提供程序的大小为宽度
w、高度h和深度d。- setStatus(status)#
- 参数:
status –
Status
将纹理提供程序的状态设置为指定的
status。另请参阅
status()- setWidth(width)#
- 参数:
width – int
将纹理提供程序的宽度设置为
width。另请参阅
width()属性
width属性的设置器。- setWrapMode(wrapMode)#
- 参数:
wrapMode –
QTextureWrapMode
将 wrapmode 设置为
wrapMode中指定的值。另请参阅
wrapMode()- status()#
- 返回类型:
状态
返回纹理提供程序当前的状态。
另请参阅
setStatus()属性
statusᅟ的获取器。- statusChanged(status)#
- 参数:
status –
Status
属性
statusᅟ的通知信号。- target()#
- 返回类型:
目标
获取纹理提供器的目标格式。
属性
targetᅟ的获取器。- textureImages()#
- 返回类型:
Qt3DRender.QAbstractTextureImage 的列表
返回包含在纹理提供器中的 QAbstractTextureImage 对象的指针列表。
- updateData(update)#
- 参数:
update –
QTextureDataUpdate
更新纹理的一个子区域,由
update定义,无需更改数据生成器或依赖于添加或删除纹理图像。- width()#
- 返回类型:
int
返回纹理的宽度
另请参阅
setWidth()属性
widthᅟ的获取器。- widthChanged(width)#
- 参数:
width – int
属性
widthᅟ的通知信号。- wrapMode()#
- 返回类型:
QTextureWrapMode
另请参阅
设置WrapMode()
属性
wrapModeᅟ的获取器。