IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QTextureData Class

The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QTextureData Class▲

  • Header: Qt3DRender/QTextureData

  • Since: Qt 5.7

  • qmake: QT += 3drender

Detailed Description▲

 

Member Function Documentation▲

 

QTextureData::QTextureData()▲

Creates a new QTextureData instance.

void QTextureData::addImageData(const Qt3DRender::QTextureImageDataPtr &imageData)▲

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.

QAbstractTexture::ComparisonFunction QTextureData::comparisonFunction() const▲

Returns the current comparison function.

See Also▲

QAbstractTexture::ComparisonMode QTextureData::comparisonMode() const▲

Returns the current comparison mode.

See Also▲

See also setComparisonMode()

int QTextureData::depth() const▲

Returns the texture depth.

See Also▲

See also setDepth()

QAbstractTexture::TextureFormat QTextureData::format() const▲

Returns the texture format

See Also▲

See also setFormat()

int QTextureData::height() const▲

Returns the texture height.

See Also▲

See also setHeight()

QVector<Qt3DRender::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.

See Also▲

See also setLayers()

QAbstractTexture::Filter QTextureData::magnificationFilter() const▲

Returns the current magnification filter.

See Also▲

float QTextureData::maximumAnisotropy() const▲

Returns the current maximum anisotropy.

See Also▲

QAbstractTexture::Filter QTextureData::minificationFilter() const▲

Returns the current minification filter.

See Also▲

void QTextureData::setAutoMipMapGenerationEnabled(bool autoMipMap)▲

Sets whether the texture has automatic mipmap generation enabled, to autoMipMap.

See Also▲

void QTextureData::setComparisonFunction(QAbstractTexture::ComparisonFunction comparisonFunction)▲

Sets the comparison function to comparisonFunction.

See Also▲

See also comparisonFunction()

void QTextureData::setComparisonMode(QAbstractTexture::ComparisonMode comparisonMode)▲

Sets the comparison mode to comparisonMode.

See Also▲

See also comparisonMode()

void QTextureData::setDepth(int depth)▲

Sets the texture depth to depth

See Also▲

See also depth()

void QTextureData::setFormat(QAbstractTexture::TextureFormat format)▲

Sets the texture format to format.

See Also▲

See also format()

void QTextureData::setHeight(int height)▲

Sets the target height to height.

See Also▲

See also height()

void QTextureData::setLayers(int layers)▲

Sets the texture layers to layers.

See Also▲

See also layers()

void QTextureData::setMagnificationFilter(QAbstractTexture::Filter filter)▲

Sets the magnification filter to filter.

See Also▲

See also magnificationFilter()

void QTextureData::setMaximumAnisotropy(float maximumAnisotropy)▲

Sets the maximum anisotropy to maximumAnisotropy.

See Also▲

See also maximumAnisotropy()

void QTextureData::setMinificationFilter(QAbstractTexture::Filter filter)▲

Sets the minification filter to filter.

See Also▲

See also minificationFilter()

void QTextureData::setTarget(QAbstractTexture::Target target)▲

Sets the target texture to target.

See Also▲

See also target()

void QTextureData::setWidth(int width)▲

Sets the texture width to width.

See Also▲

See also width()

void QTextureData::setWrapModeX(QTextureWrapMode::WrapMode wrapModeX)▲

Sets the wrap mode X to wrapModeX.

See Also▲

See also wrapModeX()

void QTextureData::setWrapModeY(QTextureWrapMode::WrapMode wrapModeY)▲

Sets the wrap mode Y to wrapModeY.

See Also▲

See also wrapModeY()

void QTextureData::setWrapModeZ(QTextureWrapMode::WrapMode wrapModeZ)▲

Sets the wrap mode Z to wrapModeZ.

See Also▲

See also wrapModeZ()

QAbstractTexture::Target QTextureData::target() const▲

Returns the texture data target.

See Also▲

See also setTarget()

int QTextureData::width() const▲

Returns the texture width.

See Also▲

See also setWidth()

QTextureWrapMode::WrapMode QTextureData::wrapModeX() const▲

Returns the current wrap mode X.

See Also▲

See also setWrapModeX()

QTextureWrapMode::WrapMode QTextureData::wrapModeY() const▲

Returns the current wrap mode Y.

See Also▲

See also setWrapModeY()

QTextureWrapMode::WrapMode QTextureData::wrapModeZ() const▲

Returns the current wrap mode Z.

See Also▲

See also setWrapModeZ()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+