QTextureData Class
(Qt3DRender::QTextureData)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 |
开始支持版本: | Qt 5.7 |
公有函数
QTextureData() | |
void | addImageData(const QTextureImageDataPtr &imageData) |
QAbstractTexture::ComparisonFunction | comparisonFunction() const |
QAbstractTexture::ComparisonMode | comparisonMode() const |
int | depth() const |
QAbstractTexture::TextureFormat | format() const |
int | height() const |
QVector<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 |
详细描述
The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled.
成员函数
QTextureData::QTextureData()
Creates a new QTextureData instance.
void QTextureData::addImageData(const QTextureImageDataPtr &imageData)
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.
QAbstractTexture::ComparisonFunction QTextureData::comparisonFunction() const
Returns the current comparison function.
参见 setComparisonFunction().
QAbstractTexture::ComparisonMode QTextureData::comparisonMode() const
Returns the current comparison mode.
参见 setComparisonMode().
int QTextureData::depth() const
Returns the texture depth.
参见 setDepth().
QAbstractTexture::TextureFormat QTextureData::format() const
Returns the texture format
参见 setFormat().
int QTextureData::height() const
Returns the texture height.
参见 setHeight().
QVector<QTextureImageDataPtr> QTextureData::imageData() const
Returns the data of the images used by this texture.
bool QTextureData::isAutoMipMapGenerationEnabled() const
Returns whether the texture has auto mipmap generation enabled.
int QTextureData::layers() const
Returns the texture layers.
参见 setLayers().
QAbstractTexture::Filter QTextureData::magnificationFilter() const
Returns the current magnification filter.
参见 setMagnificationFilter().
float QTextureData::maximumAnisotropy() const
Returns the current maximum anisotropy.
参见 setMaximumAnisotropy().
QAbstractTexture::Filter QTextureData::minificationFilter() const
Returns the current minification filter.
参见 setMinificationFilter().
void QTextureData::setAutoMipMapGenerationEnabled(bool autoMipMap)
Sets whether the texture has automatic mipmap generation enabled, to autoMipMap.
参见 isAutoMipMapGenerationEnabled().
void QTextureData::setComparisonFunction(QAbstractTexture::ComparisonFunction comparisonFunction)
Sets the comparison function to comparisonFunction.
参见 comparisonFunction().
void QTextureData::setComparisonMode(QAbstractTexture::ComparisonMode comparisonMode)
Sets the comparison mode to comparisonMode.
参见 comparisonMode().
void QTextureData::setDepth(int depth)
Sets the texture depth to depth
参见 depth().
void QTextureData::setFormat(QAbstractTexture::TextureFormat format)
Sets the texture format to format.
参见 format().
void QTextureData::setHeight(int height)
Sets the target height to height.
参见 height().
void QTextureData::setLayers(int layers)
Sets the texture layers to layers.
参见 layers().
void QTextureData::setMagnificationFilter(QAbstractTexture::Filter filter)
Sets the magnification filter to filter.
参见 magnificationFilter().
void QTextureData::setMaximumAnisotropy(float maximumAnisotropy)
Sets the maximum anisotropy to maximumAnisotropy.
参见 maximumAnisotropy().
void QTextureData::setMinificationFilter(QAbstractTexture::Filter filter)
Sets the minification filter to filter.
参见 minificationFilter().
void QTextureData::setTarget(QAbstractTexture::Target target)
Sets the target texture to target.
参见 target().
void QTextureData::setWidth(int width)
Sets the texture width to width.
参见 width().
void QTextureData::setWrapModeX(QTextureWrapMode::WrapMode wrapModeX)
Sets the wrap mode X to wrapModeX.
参见 wrapModeX().
void QTextureData::setWrapModeY(QTextureWrapMode::WrapMode wrapModeY)
Sets the wrap mode Y to wrapModeY.
参见 wrapModeY().
void QTextureData::setWrapModeZ(QTextureWrapMode::WrapMode wrapModeZ)
Sets the wrap mode Z to wrapModeZ.
参见 wrapModeZ().
QAbstractTexture::Target QTextureData::target() const
Returns the texture data target.
参见 setTarget().
int QTextureData::width() const
Returns the texture width.
参见 setWidth().
QTextureWrapMode::WrapMode QTextureData::wrapModeX() const
Returns the current wrap mode X.
参见 setWrapModeX().
QTextureWrapMode::WrapMode QTextureData::wrapModeY() const
Returns the current wrap mode Y.
参见 setWrapModeY().
QTextureWrapMode::WrapMode QTextureData::wrapModeZ() const
Returns the current wrap mode Z.
参见 setWrapModeZ().