The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled. 更多...
| 頭: | #include <Qt3DRender/QTextureData> |
| qmake: | QT += 3drender |
| Since: | Qt 5.7 |
該類在 Qt 5.7 引入。
| QTextureData () | |
| void | addImageData (const Qt3DRender::QTextureImageDataPtr & imageData ) |
| QAbstractTexture::ComparisonFunction | comparisonFunction () const |
| QAbstractTexture::ComparisonMode | comparisonMode () const |
| int | depth () const |
| QAbstractTexture::TextureFormat | format () const |
| int | height () const |
| QVector<Qt3DRender::QTextureImageDataPtr> | imageData () const |
| bool | isAutoMipMapGenerationEnabled () const |
| int | layers () const |
| QAbstractTexture::Filter | magnificationFilter () const |
| float | maximumAnisotropy () const |
| QAbstractTexture::Filter | minificationFilter () const |
| void | setAutoMipMapGenerationEnabled (bool autoMipMap ) |
| void | setComparisonFunction (QAbstractTexture::ComparisonFunction comparisonFunction ) |
| void | setComparisonMode (QAbstractTexture::ComparisonMode comparisonMode ) |
| void | setDepth (int depth ) |
| void | setFormat (QAbstractTexture::TextureFormat format ) |
| void | setHeight (int height ) |
| void | setLayers (int layers ) |
| void | setMagnificationFilter (QAbstractTexture::Filter filter ) |
| void | setMaximumAnisotropy (float maximumAnisotropy ) |
| void | setMinificationFilter (QAbstractTexture::Filter filter ) |
| void | setTarget (QAbstractTexture::Target target ) |
| void | setWidth (int width ) |
| void | setWrapModeX (QTextureWrapMode::WrapMode wrapModeX ) |
| void | setWrapModeY (QTextureWrapMode::WrapMode wrapModeY ) |
| void | setWrapModeZ (QTextureWrapMode::WrapMode wrapModeZ ) |
| QAbstractTexture::Target | target () const |
| int | width () const |
| QTextureWrapMode::WrapMode | wrapModeX () const |
| QTextureWrapMode::WrapMode | wrapModeY () const |
| QTextureWrapMode::WrapMode | wrapModeZ () const |
Creates a new QTextureData instance.
Adds an extra image layer to the texture using imageData .
注意: 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.
Returns the current comparison function.
另請參閱 setComparisonFunction ().
Returns the current comparison mode.
另請參閱 setComparisonMode ().
Returns the texture depth.
另請參閱 setDepth ().
Returns the texture format
另請參閱 setFormat ().
Returns the texture height.
另請參閱 setHeight ().
Returns the data of the images used by this texture.
Returns whether the texture has auto mipmap generation enabled.
Returns the texture layers.
另請參閱 setLayers ().
Returns the current magnification filter.
另請參閱 setMagnificationFilter ().
Returns the current maximum anisotropy.
另請參閱 setMaximumAnisotropy ().
Returns the current minification filter.
另請參閱 setMinificationFilter ().
Sets whether the texture has automatic mipmap generation enabled, to autoMipMap .
另請參閱 isAutoMipMapGenerationEnabled ().
Sets the comparison function to comparisonFunction .
另請參閱 comparisonFunction ().
Sets the comparison mode to comparisonMode .
另請參閱 comparisonMode ().
Sets the texture depth to depth
另請參閱 depth ().
Sets the texture format to format .
另請參閱 format ().
Sets the target height to height .
另請參閱 height ().
Sets the texture layers to layers .
另請參閱 layers ().
Sets the magnification filter to filter .
另請參閱 magnificationFilter ().
Sets the maximum anisotropy to maximumAnisotropy .
另請參閱 maximumAnisotropy ().
Sets the minification filter to filter .
另請參閱 minificationFilter ().
Sets the target texture to target .
另請參閱 target ().
Sets the texture width to width .
另請參閱 width ().
Sets the wrap mode X to wrapModeX .
另請參閱 wrapModeX ().
Sets the wrap mode Y to wrapModeY .
另請參閱 wrapModeY ().
Sets the wrap mode Z to wrapModeZ .
另請參閱 wrapModeZ ().
Returns the texture data target.
另請參閱 setTarget ().
Returns the texture width.
另請參閱 setWidth ().
Returns the current wrap mode X.
另請參閱 setWrapModeX ().
Returns the current wrap mode Y.
另請參閱 setWrapModeY ().
Returns the current wrap mode Z.
另請參閱 setWrapModeZ ().