PySide6.Qt3DRender.Qt3DRender.QAbstractTexture

class QAbstractTexture

一个用于提供纹理的基类。更多

PySide6.Qt3DRender.Qt3DRender.QAbstractTexture 的继承图

继承自: QTextureRectangle, QTextureLoader, QTextureCubeMapArray, QTextureCubeMap, QTextureBuffer, QTexture3D, QTexture2DMultisampleArray, QTexture2DMultisample, QTexture2DArray, QTexture2D, QTexture1DArray, QTexture1D, QSharedGLTexture

概要

属性

方法

插槽

信号

注意

本文档可能包含从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

Qt3DRender.QAbstractTexture.RGB8_UNorm

GL_RGB8

Qt3DRender.QAbstractTexture.RGBA8_UNorm

GL_RGBA8

Qt3DRender.QAbstractTexture.R16_UNorm

GL_R16

Qt3DRender.QAbstractTexture.RG16_UNorm

GL_RG16

Qt3DRender.QAbstractTexture.RGB16_UNorm

GL_RGB16

Qt3DRender.QAbstractTexture.RGBA16_UNorm

GL_RGBA16

Qt3DRender.QAbstractTexture.R8_SNorm

GL_R8_SNORM

Qt3DRender.QAbstractTexture.RG8_SNorm

GL_RG8_SNORM

Qt3DRender.QAbstractTexture.RGB8_SNorm

GL_RGB8_SNORM

Qt3DRender.QAbstractTexture.RGBA8_SNorm

GL_RGBA8_SNORM

Qt3DRender.QAbstractTexture.R16_SNorm

GL_R16_SNORM

Qt3DRender.QAbstractTexture.RG16_SNorm

GL_RG16_SNORM

Qt3DRender.QAbstractTexture.RGB16_SNorm

GL_RGB16_SNORM

Qt3DRender.QAbstractTexture.RGBA16_SNorm

GL_RGBA16_SNORM

Qt3DRender.QAbstractTexture.R8U

GL_R8UI

Qt3DRender.QAbstractTexture.RG8U

GL_RG8UI

Qt3DRender.QAbstractTexture.RGB8U

GL_RGB8UI

Qt3DRender.QAbstractTexture.RGBA8U

GL_RGBA8UI

Qt3DRender.QAbstractTexture.R16U

GL_R16UI

Qt3DRender.QAbstractTexture.RG16U

GL_RG16UI

Qt3DRender.QAbstractTexture.RGB16U

GL_RGB16UI

Qt3DRender.QAbstractTexture.RGBA16U

GL_RGBA16UI

Qt3DRender.QAbstractTexture.R32U

GL_R32UI

Qt3DRender.QAbstractTexture.RG32U

GL_RG32UI

Qt3DRender.QAbstractTexture.RGB32U

GL_RGB32UI

Qt3DRender.QAbstractTexture.RGBA32U

GL_RGBA32UI

Qt3DRender.QAbstractTexture.R8I

GL_R8I

Qt3DRender.QAbstractTexture.RG8I

GL_RG8I

Qt3DRender.QAbstractTexture.RGB8I

GL_RGB8I

Qt3DRender.QAbstractTexture.RGBA8I

GL_RGBA8I

Qt3DRender.QAbstractTexture.R16I

GL_R16I

Qt3DRender.QAbstractTexture.RG16I

GL_RG16I

Qt3DRender.QAbstractTexture.RGB16I

GL_RGB16I

Qt3DRender.QAbstractTexture.RGBA16I

GL_RGBA16I

Qt3DRender.QAbstractTexture.R32I

GL_R32I

Qt3DRender.QAbstractTexture.RG32I

GL_RG32I

Qt3DRender.QAbstractTexture.RGB32I

GL_RGB32I

Qt3DRender.QAbstractTexture.RGBA32I

GL_RGBA32I

Qt3DRender.QAbstractTexture.R16F

GL_R16F

Qt3DRender.QAbstractTexture.RG16F

GL_RG16F

Qt3DRender.QAbstractTexture.RGB16F

GL_RGB16F

Qt3DRender.QAbstractTexture.RGBA16F

GL_RGBA16F

Qt3DRender.QAbstractTexture.R32F

GL_R32F

Qt3DRender.QAbstractTexture.RG32F

GL_RG32F

Qt3DRender.QAbstractTexture.RGB32F

GL_RGB32F

Qt3DRender.QAbstractTexture.RGBA32F

GL_RGBA32F

Qt3DRender.QAbstractTexture.RGB9E5

GL_RGB9_E5

Qt3DRender.QAbstractTexture.RG11B10F

GL_R11F_G11F_B10F

Qt3DRender.QAbstractTexture.RG3B2

GL_R3_G3_B2

Qt3DRender.QAbstractTexture.R5G6B5

GL_RGB565

Qt3DRender.QAbstractTexture.RGB5A1

GL_RGB5_A1

Qt3DRender.QAbstractTexture.RGBA4

GL_RGBA4

Qt3DRender.QAbstractTexture.RGB10A2

GL_RGB10_A2

Qt3DRender.QAbstractTexture.RGB10A2U

GL_RGB10_A2UI

Qt3DRender.QAbstractTexture.D16

GL_DEPTH_COMPONENT16

Qt3DRender.QAbstractTexture.D24

GL_DEPTH_COMPONENT24

Qt3DRender.QAbstractTexture.D24S8

GL_DEPTH24_STENCIL8

Qt3DRender.QAbstractTexture.D32

GL_DEPTH_COMPONENT32

Qt3DRender.QAbstractTexture.D32F

GL_DEPTH_COMPONENT32F

Qt3DRender.QAbstractTexture.D32FS8X24

GL_DEPTH32F_STENCIL8

Qt3DRender.QAbstractTexture.RGB_DXT1

GL_COMPRESSED_RGB_S3TC_DXT1_EXT

Qt3DRender.QAbstractTexture.RGBA_DXT1

GL_COMPRESSED_RGBA_S3TC_DXT1_EXT

Qt3DRender.QAbstractTexture.RGBA_DXT3

GL_COMPRESSED_RGBA_S3TC_DXT3_EXT

Qt3DRender.QAbstractTexture.RGBA_DXT5

GL_COMPRESSED_RGBA_S3TC_DXT5_EXT

Qt3DRender.QAbstractTexture.R_ATI1N_UNorm

GL_COMPRESSED_RED_RGTC1

Qt3DRender.QAbstractTexture.R_ATI1N_SNorm

GL_COMPRESSED_SIGNED_RED_RGTC1

Qt3DRender.QAbstractTexture.RG_ATI2N_UNorm

GL_COMPRESSED_RG_RGTC2

Qt3DRender.QAbstractTexture.RG_ATI2N_SNorm

GL_COMPRESSED_SIGNED_RG_RGTC2

Qt3DRender.QAbstractTexture.RGB_BP_UNSIGNED_FLOAT

GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB

Qt3DRender.QAbstractTexture.RGB_BP_SIGNED_FLOAT

GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB

Qt3DRender.QAbstractTexture.RGB_BP_UNorm

GL_COMPRESSED_RGBA_BPTC_UNORM_ARB

Qt3DRender.QAbstractTexture.R11_EAC_UNorm

GL_COMPRESSED_R11_EAC

Qt3DRender.QAbstractTexture.R11_EAC_SNorm

GL_COMPRESSED_SIGNED_R11_EAC

Qt3DRender.QAbstractTexture.RG11_EAC_UNorm

GL_COMPRESSED_RG11_EAC

Qt3DRender.QAbstractTexture.RG11_EAC_SNorm

GL_COMPRESSED_SIGNED_RG11_EAC

Qt3DRender.QAbstractTexture.RGB8_ETC2

GL_COMPRESSED_RGB8_ETC2

Qt3DRender.QAbstractTexture.SRGB8_ETC2

GL_COMPRESSED_SRGB8_ETC2

Qt3DRender.QAbstractTexture.RGB8_PunchThrough_Alpha1_ETC2

GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2

Qt3DRender.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 应该仅在需要对立方体贴图的所有面应用行为时使用。例如,当使用立方体贴图作为纹理附件时就是这种情况。在附件规范中使用 AllFaces 将导致所有面都被绑定到附件点。另一方面,如果指定了特定的面,附件将仅使用指定的面。

class ComparisonFunction
class ComparisonMode
class HandleType

注意

当使用from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。

property comparisonFunctionᅟ: Qt3DRender.QAbstractTexture.ComparisonFunction

保存纹理提供者的比较函数。

Access functions:
property comparisonModeᅟ: Qt3DRender.QAbstractTexture.ComparisonMode

保存纹理提供者的比较模式。

Access functions:
property depthᅟ: int

保存纹理提供者的深度。

Access functions:
property formatᅟ: Qt3DRender.QAbstractTexture.TextureFormat

保存纹理提供者的格式。

Access functions:
property generateMipMapsᅟ: bool

确定纹理提供者是否应自动生成mipmaps。

Access functions:
property handleᅟ: object

保存当前的纹理句柄,如果Qt 3D使用OpenGL渲染器,句柄是一个纹理ID整数。

Access functions:
property handleTypeᅟ: Qt3DRender.QAbstractTexture.HandleType

保存当前纹理句柄类型。

Access functions:
property heightᅟ: int

保存纹理提供者的高度。

Access functions:
property layersᅟ: int

保存纹理提供者的最大层数。默认情况下,最大层数为1。

注意

这仅对具有3D或数组目标格式的纹理提供者有意义。

Access functions:
property magnificationFilterᅟ: Qt3DRender.QAbstractTexture.Filter

保存纹理提供者的放大滤镜。

Access functions:
property maximumAnisotropyᅟ: float

保存纹理提供者的最大各向异性。

Access functions:
property minificationFilterᅟ: Qt3DRender.QAbstractTexture.Filter

保存纹理提供者的最小化过滤器。

Access functions:
property mipLevelsᅟ: int

保存纹理提供者的mipmap级别。

Access functions:
property samplesᅟ: int

保存纹理提供者每个纹素的样本数量。默认情况下,样本数量为1。

注意

这仅对具有多重采样格式的纹理提供者有意义。

Access functions:
property statusᅟ: Qt3DRender.QAbstractTexture.Status

保存纹理提供者的当前状态。

Access functions:
property targetᅟ: Qt3DRender.QAbstractTexture.Target

保存纹理提供者的目标格式。

注意

目标格式只能设置一次。

Access functions:
property widthᅟ: int

保存纹理提供者的宽度。

Access functions:
property wrapModeᅟ: QTextureWrapMode

保存纹理提供者的包裹模式。

Access functions:
__init__([parent=None])
Parameters:

parentQNode

构造函数创建一个具有指定parent的新QAbstractTexture实例。

__init__(target[, parent=None])
Parameters:
  • target目标

  • parentQNode

构造函数创建一个新的QAbstractTexture实例,并指定targetparent

addTextureImage(textureImage)
Parameters:

textureImageQAbstractTextureImage

向纹理提供者添加一个新的Qt3DCore::QAbstractTextureImage textureImage

注意

QAbstractTextureImage 不应该在多个 QAbstractTexture 实例之间共享。

comparisonFunction()
Return type:

ComparisonFunction

返回当前的比较函数。

另请参阅

setComparisonFunction()

属性 comparisonFunctionᅟ 的获取器。

comparisonFunctionChanged(comparisonFunction)
Parameters:

comparisonFunctionComparisonFunction

属性 comparisonFunctionᅟ 的通知信号。

comparisonMode()
Return type:

ComparisonMode

返回当前的比较模式。

另请参阅

setComparisonMode()

属性 comparisonModeᅟ 的获取器。

comparisonModeChanged(comparisonMode)
Parameters:

comparisonModeComparisonMode

属性 comparisonModeᅟ 的通知信号。

depth()
Return type:

整数

返回纹理的深度

另请参阅

setDepth()

属性 depthᅟ 的获取器。

depthChanged(depth)
Parameters:

深度 – int

属性 depthᅟ 的通知信号。

format()
Return type:

TextureFormat

返回纹理提供者的格式。

另请参阅

setFormat()

属性 formatᅟ 的获取器。

formatChanged(format)
Parameters:

格式TextureFormat

属性 formatᅟ 的通知信号。

generateMipMaps()
Return type:

布尔

另请参阅

setGenerateMipMaps()

属性 generateMipMapsᅟ 的获取器。

generateMipMapsChanged(generateMipMaps)
Parameters:

generateMipMaps – 布尔值

属性 generateMipMapsᅟ 的通知信号。

handle()
Return type:

对象

返回当前的纹理句柄,如果Qt 3D使用的是OpenGL渲染器,句柄是一个纹理ID整数。

属性 handleᅟ 的获取器。

handleChanged(handle)
Parameters:

handle – 对象

属性 handleᅟ 的通知信号。

handleType()
Return type:

HandleType

返回当前的纹理句柄类型。

属性 handleTypeᅟ 的获取器。

handleTypeChanged(handleType)
Parameters:

handleTypeHandleType

属性 handleTypeᅟ 的通知信号。

height()
Return type:

整数

返回纹理的高度

另请参阅

setHeight()

属性 heightᅟ 的获取器。

heightChanged(height)
Parameters:

height – int

属性 heightᅟ 的通知信号。

layers()
Return type:

整数

返回纹理提供者的最大层数。

注意

这仅对具有3D或数组目标格式的纹理提供者有意义。

另请参阅

setLayers()

属性 layersᅟ 的获取器。

layersChanged(layers)
Parameters:

layers – 整数

属性 layersᅟ 的通知信号。

magnificationFilter()
Return type:

Filter

另请参阅

setMagnificationFilter()

属性 magnificationFilterᅟ 的获取器。

magnificationFilterChanged(magnificationFilter)
Parameters:

放大过滤器Filter

属性 magnificationFilterᅟ 的通知信号。

maximumAnisotropy()
Return type:

浮点数

返回当前的最大各向异性

另请参阅

setMaximumAnisotropy()

属性 maximumAnisotropyᅟ 的获取器。

maximumAnisotropyChanged(maximumAnisotropy)
Parameters:

maximumAnisotropy – 浮点数

属性 maximumAnisotropyᅟ 的通知信号。

minificationFilter()
Return type:

Filter

另请参阅

setMinificationFilter()

属性 minificationFilterᅟ 的获取器。

minificationFilterChanged(minificationFilter)
Parameters:

minificationFilterFilter

属性 minificationFilterᅟ 的通知信号。

mipLevels()
Return type:

整数

另请参阅

setMipLevels()

属性 mipLevelsᅟ 的获取器。

mipLevelsChanged(mipLevels)
Parameters:

mipLevels – int

属性 mipLevelsᅟ 的通知信号。

removeTextureImage(textureImage)
Parameters:

textureImageQAbstractTextureImage

从纹理提供者中移除一个Qt3DCore::QAbstractTextureImage textureImage

samples()
Return type:

整数

返回纹理提供者每个纹素的样本数量。

注意

这仅对具有多重采样格式的纹理提供者有意义。

另请参阅

setSamples()

属性 samplesᅟ 的获取器。

samplesChanged(samples)
Parameters:

样本 – int

属性 samplesᅟ 的通知信号。

setComparisonFunction(function)
Parameters:

functionComparisonFunction

将比较函数设置为 function

另请参阅

comparisonFunction()

属性 comparisonFunctionᅟ 的设置器。

setComparisonMode(mode)
Parameters:

modeComparisonMode

将比较模式设置为 mode

另请参阅

comparisonMode()

属性 comparisonModeᅟ 的设置器。

setDepth(depth)
Parameters:

深度 – int

将纹理的深度设置为 depth

另请参阅

depth()

属性 depthᅟ 的设置器。

setFormat(format)
Parameters:

格式TextureFormat

将纹理格式设置为 format

另请参阅

format()

属性 formatᅟ 的设置器。

setGenerateMipMaps(gen)
Parameters:

gen – 布尔值

布尔参数 gen 设置一个标志,指示纹理提供者是否应生成mipmaps。

另请参阅

generateMipMaps()

属性 generateMipMapsᅟ 的设置器。

setHandle(handle)
Parameters:

handle – 对象

setHandleType(type)
Parameters:

类型HandleType

setHeight(height)
Parameters:

height – int

将高度设置为 height

另请参阅

height()

属性 heightᅟ 的设置器。

setLayers(layers)
Parameters:

layers – 整数

设置最大层数为layers

另请参阅

layers()

属性 layersᅟ 的设置器。

setMagnificationFilter(f)
Parameters:

f过滤器

将放大过滤器设置为 f

另请参阅

magnificationFilter()

属性 magnificationFilterᅟ 的设置器。

setMaximumAnisotropy(anisotropy)
Parameters:

各向异性 – float

设置最大各向异性为 anisotropy

另请参阅

maximumAnisotropy()

属性 maximumAnisotropyᅟ 的设置器。

setMinificationFilter(f)
Parameters:

f过滤器

将最小化过滤器设置为指定的值 f

另请参阅

minificationFilter()

属性 minificationFilterᅟ 的设置器。

setMipLevels(mipLevels)
Parameters:

mipLevels – int

另请参阅

mipLevels()

属性 mipLevelsᅟ 的设置器。

setSamples(samples)
Parameters:

样本 – int

设置每个纹素的样本数为samples

另请参阅

samples()

属性 samplesᅟ 的设置器。

setSize(width[, height=1[, depth=1]])
Parameters:
  • width – int

  • height – int

  • depth – int

将纹理提供者的大小设置为宽度w,高度h和深度d

setStatus(status)
Parameters:

状态Status

将纹理提供者的状态设置为指定的status

另请参阅

status()

setWidth(width)
Parameters:

width – 整数

将纹理提供者的宽度设置为 width

另请参阅

width()

属性 widthᅟ 的设置器。

setWrapMode(wrapMode)
Parameters:

wrapModeQTextureWrapMode

将wrapmode设置为wrapMode中指定的值。

另请参阅

wrapMode()

status()
Return type:

状态

返回纹理提供程序的当前状态。

另请参阅

setStatus()

属性 statusᅟ 的获取器。

statusChanged(status)
Parameters:

状态Status

属性 statusᅟ 的通知信号。

target()
Return type:

目标

返回纹理提供者的目标格式。

属性 targetᅟ 的获取器。

textureImages()
Return type:

Qt3DRender.QAbstractTextureImage的列表

返回指向纹理提供者中包含的QAbstractTextureImage对象的指针列表。

updateData(update)
Parameters:

更新QTextureDataUpdate

更新纹理的一个子区域,由update定义,无需更改数据生成器或依赖添加或删除纹理图像。

width()
Return type:

整数

返回纹理的宽度

另请参阅

setWidth()

属性 widthᅟ 的获取器。

widthChanged(width)
Parameters:

width – 整数

属性 widthᅟ 的通知信号。

wrapMode()
Return type:

QTextureWrapMode

另请参阅

setWrapMode()

属性 wrapModeᅟ 的获取器。