QSkyboxEntity Class
(Qt3DExtras::QSkyboxEntity)Qt3DExtras::QSkyboxEntity is a convenience Qt3DCore::QEntity subclass that can be used to insert a skybox in a 3D scene. 更多...
头文件: | #include <Qt3DExtras/QSkyboxEntity> |
qmake: | QT += 3dextras |
开始支持版本: | Qt 5.5 |
基类: | Qt3DCore::QEntity |
属性
- baseName : QString
- extension : QString
- gammaCorrect : bool
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QSkyboxEntity(Qt3DCore::QNode *parent = nullptr) | |
QString | baseName() const |
QString | extension() const |
bool | isGammaCorrectEnabled() const |
- 4 个公有函数继承自 Qt3DCore::QEntity
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setBaseName(const QString &baseName) |
void | setExtension(const QString &extension) |
void | setGammaCorrectEnabled(bool enabled) |
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | baseNameChanged(const QString &path) |
void | extensionChanged(const QString &extension) |
void | gammaCorrectEnabledChanged(bool enabled) |
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
其他继承的成员
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
Qt3DExtras::QSkyboxEntity is a convenience Qt3DCore::QEntity subclass that can be used to insert a skybox in a 3D scene.
By specifying a base name and an extension, Qt3DExtras::QSkyboxEntity will take care of building a TextureCubeMap to be rendered at runtime. The images in the source directory should match the pattern: base name + * "_posx|_posy|_posz|_negx|_negy|_negz" + extension
By default the extension defaults to .png.
Be sure to disable frustum culling in the FrameGraph through which the skybox rendering happens.
Note: Please note that you shouldn't try to render a skybox with an orthographic projection.
属性
baseName : QString
访问函数:
QString | baseName() const |
void | setBaseName(const QString &baseName) |
Notifier signal:
void | baseNameChanged(const QString &path) |
extension : QString
访问函数:
QString | extension() const |
void | setExtension(const QString &extension) |
Notifier signal:
void | extensionChanged(const QString &extension) |
gammaCorrect : bool
访问函数:
bool | isGammaCorrectEnabled() const |
void | setGammaCorrectEnabled(bool enabled) |
Notifier signal:
void | gammaCorrectEnabledChanged(bool enabled) |
成员函数
QSkyboxEntity::QSkyboxEntity(Qt3DCore::QNode *parent = nullptr)
Default constructs an instance of QSkyboxEntity.
QString QSkyboxEntity::baseName() const
Returns the base name.
Note: Getter function for property baseName.
参见 setBaseName().
QString QSkyboxEntity::extension() const
Returns the extension
Note: Getter function for property extension.
参见 setExtension().
bool QSkyboxEntity::isGammaCorrectEnabled() const
Returns true if gamma correction is enabled for this skybox.
This function was introduced in Qt 5.9.
Note: Getter function for property gammaCorrect.
[slot]
void QSkyboxEntity::setBaseName(const QString &baseName)
Sets the base name to baseName.
Note: Setter function for property baseName.
参见 baseName().
[slot]
void QSkyboxEntity::setExtension(const QString &extension)
Sets the extension to extension.
Note: Setter function for property extension.
参见 extension().
[slot]
void QSkyboxEntity::setGammaCorrectEnabled(bool enabled)
Sets the gamma correction enable state to enabled.
This function was introduced in Qt 5.9.
Note: Setter function for property gammaCorrect.
参见 isGammaCorrectEnabled().