QAbstractTextureImage

Encapsulates the necessary information to create an OpenGL texture image. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage

Inherited by: QTextureImage, QPaintedTextureImage

Synopsis

Functions

Virtual functions

Slots

Signals

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.

Note

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

class PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage
PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.dataGenerator()
Return type

QSharedPointer

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

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.face()
Return type

CubeMapFace

Holds the cube map face of the texture image.

Note

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

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.faceChanged(face)
Parameters

faceCubeMapFace

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.layer()
Return type

int

Returns the layer of the texture image.

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.layerChanged(layer)
Parameters

layer – int

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.mipLevel()
Return type

int

Holds the mipmap level of the texture image.

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.mipLevelChanged(mipLevel)
Parameters

mipLevel – int

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.notifyDataGeneratorChanged()

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

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.setFace(face)
Parameters

faceCubeMapFace

Holds the cube map face of the texture image.

Note

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

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.setLayer(layer)
Parameters

layer – int

Returns the layer of the texture image.

PySide6.Qt3DRender.Qt3DRender.QAbstractTextureImage.setMipLevel(level)
Parameters

level – int

Holds the mipmap level of the texture image.