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

QTextureImageData Class

QTextureImageData stores data representing a texture.

This class was introduced in Qt 5.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QTextureImageData Class

  • Header: QTextureImageData

  • Since: Qt 5.5

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3drender)

    target_link_libraries(mytarget PRIVATE Qt6::3drender)

  • qmake: QT += 3drender

Detailed Description

 

Member Function Documentation

 

QTextureImageData::QTextureImageData()

Constructs a new Qt3DRender::QTextureImageData.

int QTextureImageData::alignment() const

Returns the alignment requirement for the image.

See Also

See also setAlignment()

void QTextureImageData::cleanup()

Remove stored texture data and return the object to its initial state

QByteArray QTextureImageData::data(int layer = 0, int face = 0, int mipmapLevel = 0) const

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel.

See Also

See also setData()

int QTextureImageData::depth() const

Returns the depth of the stored texture

See Also

See also setDepth()

int QTextureImageData::faces() const

Returns the number of faces in the stored texture

See Also

See also setFaces()

QOpenGLTexture::TextureFormat QTextureImageData::format() const

Returns the format of the stored texture.

See Also

See also setFormat()

int QTextureImageData::height() const

Returns the height of the stored texture

See Also

See also setHeight()

bool QTextureImageData::isCompressed() const

Returns true if the stored texture is in a compressed format

int QTextureImageData::layers() const

Returns the number of layers in the stored texture

See Also

See also setLayers()

int QTextureImageData::mipLevels() const

Returns the number of mip levels in the stored texture

See Also

See also setMipLevels()

QOpenGLTexture::PixelFormat QTextureImageData::pixelFormat() const

Returns the pixel format of the stored texture.

See Also

See also setPixelFormat()

QOpenGLTexture::PixelType QTextureImageData::pixelType() const

Returns the pixel type of the stored texture.

See Also

See also setPixelType()

void QTextureImageData::setAlignment(int alignment)

Sets the alignment requirements for the image.

See Also

See also alignment()

void QTextureImageData::setData(const QByteArray &data, int blockSize, bool isCompressed = false)

Stores the data data with blocksize blockSize and if the data to be stored is compressed isCompressed.

See Also

See also data()

void QTextureImageData::setDepth(int depth)

Sets the depth to depth. setDepth

See Also

See also depth()

void QTextureImageData::setFaces(int faces)

Sets the faces to faces. setFaces

See Also

See also faces()

void QTextureImageData::setFormat(QOpenGLTexture::TextureFormat format)

Sets the format to format.

See Also

See also format()

void QTextureImageData::setHeight(int height)

Sets the height to height. setHeight

See Also

See also height()

void QTextureImageData::setImage(const QImage &image)

Copies the image image as raw data within this object.

void QTextureImageData::setLayers(int layers)

Sets the layers to layers. setLayers

See Also

See also layers()

void QTextureImageData::setMipLevels(int mipLevels)

Sets the mip levels to mipLevels. setMipLevels

See Also

See also mipLevels()

void QTextureImageData::setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat)

Sets the pixel format to pixelFormat.

See Also

See also pixelFormat()

void QTextureImageData::setPixelType(QOpenGLTexture::PixelType pixelType)

Sets the pixel type to pixelType.

See Also

See also pixelType()

void QTextureImageData::setTarget(QOpenGLTexture::Target target)

Sets the target to target.

See Also

See also target()

void QTextureImageData::setWidth(int width)

Sets the width to width. setWidth

See Also

See also width()

QOpenGLTexture::Target QTextureImageData::target() const

Returns the target for the stored texture.

See Also

See also setTarget()

int QTextureImageData::width() const

Returns the width of the stored texture

See Also

See also setWidth()

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