QTextureImageDataGenerator Class

class Qt3DRender ::QTextureImageDataGenerator

Provides texture image data for QAbstractTextureImage . 更多...

头: #include <QTextureImageDataGenerator>
qmake: QT += 3drender
Since: Qt 5.7
继承: Qt3DRender::QAbstractFunctor

该类在 Qt 5.7 引入。

公共函数

virtual Qt3DRender::QTextureImageDataPtr operator() () = 0
virtual bool operator== (const Qt3DRender::QTextureImageDataGenerator & other ) const = 0
typedef QTextureImageDataPtr

详细描述

QTextureImageDataGenerator is a data provider for QAbstractTexture . QTextureImageDataGenerator can be used to expand Qt3D with more ways to load texture image data as well as support user-defined formats and formats Qt3D does not natively support. The data is returned by the QTextureImageDataPtr which contains the data that will be loaded to the texture. QTextureImageDataGenerator is executed by Aspect jobs in the backend.

成员函数文档编制

[pure virtual] Qt3DRender::QTextureImageDataPtr QTextureImageDataGenerator:: operator() ()

Implement the method to return the texture image data.

[pure virtual] bool QTextureImageDataGenerator:: operator== (const Qt3DRender::QTextureImageDataGenerator & other ) const

Implement the method to compare this texture data generator to other . Returns a boolean that indicates whether the QAbstractTextureImage needs to reload the QTextureImageData .

相关非成员

typedef QTextureImageDataPtr

Shared pointer to QTextureImageData .