Qt3DRender::QTextureImageDataGenerator Class
class Qt3DRender::QTextureImageDataGenerator为QAbstractTextureImage 提供纹理图像数据。更多
头文件: | #include <QTextureImageDataGenerator> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
继承: | Qt3DCore::QAbstractFunctor |
状态: | 已废弃 |
公共函数
virtual Qt3DRender::QTextureImageDataPtr | operator()() = 0 |
virtual bool | operator==(const Qt3DRender::QTextureImageDataGenerator &other) const = 0 |
相关非成员
详细说明
QTextureImageDataGenerator 是QAbstractTexture 的数据提供程序。QTextureImageDataGenerator 可用于扩展 Qt3D,提供更多加载纹理图像数据的方法,并支持用户自定义格式和 Qt3D 本身不支持的格式。数据由QTextureImageDataPtr 返回,其中包含将加载到纹理的数据。QTextureImageDataGenerator 由后台的 Aspect 作业执行。
成员函数文档
[pure virtual]
Qt3DRender::QTextureImageDataPtr QTextureImageDataGenerator::operator()()
实现返回纹理图像数据的方法。
[pure virtual]
bool QTextureImageDataGenerator::operator==(const Qt3DRender::QTextureImageDataGenerator &other) const
实现将此纹理数据生成器与other 进行比较的方法。返回一个布尔值,表示QAbstractTextureImage 是否需要重新加载QTextureImageData 。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.