QTextureData¶
The
QTextureData
class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled. More…
Synopsis¶
Functions¶
def
addImageData
(imageData)def
comparisonFunction
()def
comparisonMode
()def
depth
()def
format
()def
height
()def
imageData
()def
layers
()def
magnificationFilter
()def
maximumAnisotropy
()def
minificationFilter
()def
setAutoMipMapGenerationEnabled
(isAutoMipMapGenerationEnabled)def
setComparisonFunction
(comparisonFunction)def
setComparisonMode
(comparisonMode)def
setDepth
(depth)def
setFormat
(arg__1)def
setHeight
(height)def
setLayers
(layers)def
setMagnificationFilter
(filter)def
setMaximumAnisotropy
(maximumAnisotropy)def
setMinificationFilter
(filter)def
setTarget
(target)def
setWidth
(width)def
setWrapModeX
(wrapModeX)def
setWrapModeY
(wrapModeY)def
setWrapModeZ
(wrapModeZ)def
target
()def
width
()def
wrapModeX
()def
wrapModeY
()def
wrapModeZ
()
Detailed Description¶
- class PySide2.Qt3DRender.Qt3DRender.QTextureData¶
Creates a new
QTextureData
instance.
- PySide2.Qt3DRender.Qt3DRender.QTextureData.addImageData(imageData)¶
- Parameters:
imageData –
QSharedPointer
Adds an extra image layer to the texture using
imageData
.Note
The texture image should be loaded with the size specified on the texture. However, if no size is specified, the size of the first texture image file is used as default.
- PySide2.Qt3DRender.Qt3DRender.QTextureData.comparisonFunction()¶
- Return type:
Returns the current comparison function.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.comparisonMode()¶
- Return type:
Returns the current comparison mode.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.depth()¶
- Return type:
int
Returns the texture depth.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.format()¶
- Return type:
Returns the texture format
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.height()¶
- Return type:
int
Returns the texture height.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.imageData()¶
- Return type:
Returns the data of the images used by this texture.
- PySide2.Qt3DRender.Qt3DRender.QTextureData.isAutoMipMapGenerationEnabled()¶
- Return type:
bool
Returns whether the texture has auto mipmap generation enabled.
- PySide2.Qt3DRender.Qt3DRender.QTextureData.layers()¶
- Return type:
int
Returns the texture layers.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.magnificationFilter()¶
- Return type:
Returns the current magnification filter.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.maximumAnisotropy()¶
- Return type:
float
Returns the current maximum anisotropy.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.minificationFilter()¶
- Return type:
Returns the current minification filter.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setAutoMipMapGenerationEnabled(isAutoMipMapGenerationEnabled)¶
- Parameters:
isAutoMipMapGenerationEnabled – bool
Sets whether the texture has automatic mipmap generation enabled, to
autoMipMap
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setComparisonFunction(comparisonFunction)¶
- Parameters:
comparisonFunction –
ComparisonFunction
Sets the comparison function to
comparisonFunction
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setComparisonMode(comparisonMode)¶
- Parameters:
comparisonMode –
ComparisonMode
Sets the comparison mode to
comparisonMode
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setDepth(depth)¶
- Parameters:
depth – int
Sets the texture depth to
depth
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setFormat(arg__1)¶
- Parameters:
arg__1 –
TextureFormat
Sets the texture format to
format
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setHeight(height)¶
- Parameters:
height – int
Sets the target height to
height
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setLayers(layers)¶
- Parameters:
layers – int
Sets the texture layers to
layers
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setMagnificationFilter(filter)¶
- Parameters:
filter –
Filter
Sets the magnification filter to
filter
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setMaximumAnisotropy(maximumAnisotropy)¶
- Parameters:
maximumAnisotropy – float
Sets the maximum anisotropy to
maximumAnisotropy
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setMinificationFilter(filter)¶
- Parameters:
filter –
Filter
Sets the minification filter to
filter
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setTarget(target)¶
- Parameters:
target –
Target
Sets the target texture to
target
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setWidth(width)¶
- Parameters:
width – int
Sets the texture width to
width
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setWrapModeX(wrapModeX)¶
- Parameters:
wrapModeX –
WrapMode
Sets the wrap mode X to
wrapModeX
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setWrapModeY(wrapModeY)¶
- Parameters:
wrapModeY –
WrapMode
Sets the wrap mode Y to
wrapModeY
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.setWrapModeZ(wrapModeZ)¶
- Parameters:
wrapModeZ –
WrapMode
Sets the wrap mode Z to
wrapModeZ
.See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.target()¶
- Return type:
Returns the texture data target.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.width()¶
- Return type:
int
Returns the texture width.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.wrapModeX()¶
- Return type:
Returns the current wrap mode X.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.wrapModeY()¶
- Return type:
Returns the current wrap mode Y.
See also
- PySide2.Qt3DRender.Qt3DRender.QTextureData.wrapModeZ()¶
- Return type:
Returns the current wrap mode Z.
See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.