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

QAbstractTextureImage Class

Encapsulates the necessary information to create an OpenGL texture image.

This class was introduced in Qt 5.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAbstractTextureImage Class

Detailed Description

QAbstractTextureImage should be used as the means of providing image data to a QAbstractTexture. It contains the necessary information: mipmap level, layer, cube face load at the proper place data into an OpenGL texture.

The actual data is provided through a QTextureImageDataGenerator that will be executed by Aspect jobs in the backend. QAbstractTextureImage should be subclassed to provide a functor and eventual additional properties needed by the functor to load actual data.

: QAbstractTextureImage should never be shared. Expect crashes, undefined behavior at best if this rule is not respected.

Property Documentation

 

face : Qt3DRender::QAbstractTexture::CubeMapFace

Holds the cube map face of the texture image.

The cube map face has a meaning only for TargetCubeMap and TargetCubeMapArray.

Access functions:

Notifier signal:

  • void faceChanged( face)

layer : int

Returns the layer of the texture image.

Access functions:

  • int layer() const

  • void setLayer(int layer)

Notifier signal:

  • void layerChanged(int layer)

mipLevel : int

Holds the mipmap level of the texture image.

Access functions:

Notifier signal:

  • void mipLevelChanged(int mipLevel)

Member Function Documentation

 

[explicit] QAbstractTextureImage::QAbstractTextureImage(Qt3DCore::QNode *parent = nullptr)

Constructs a new QAbstractTextureImage instance with parent as parent.

[pure virtual protected] Qt3DRender::QTextureImageDataGeneratorPtr QAbstractTextureImage::dataGenerator() const

Implement this method to return the QTextureImageDataGeneratorPtr instance, which will provide the data for the texture image.

[protected] void QAbstractTextureImage::notifyDataGeneratorChanged()

Triggers an update of the data generator that is sent to the backend.

void QAbstractTextureImage::setFace(QAbstractTexture::CubeMapFace face)

Sets the texture image face to face. face

Setter function for property face.

See Also

See also face()

void QAbstractTextureImage::setLayer(int layer)

Sets the layer of a texture to layer. layer

Setter function for property layer.

See Also

See also layer()

void QAbstractTextureImage::setMipLevel(int level)

Sets the mip level of a texture to level. level

Setter function for property mipLevel.

See Also

See also mipLevel()

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