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 |
| Since: | Qt 5.5 |
| 實例化: | SkyboxEntity |
| 繼承: | Qt3DCore::QEntity |
該類在 Qt 5.5 引入。
| QSkyboxEntity (Qt3DCore::QNode * parent = nullptr) | |
| QString | baseName () const |
| QString | extension () const |
| bool | isGammaCorrectEnabled () const |
| void | setBaseName (const QString & baseName ) |
| void | setExtension (const QString & extension ) |
| void | setGammaCorrectEnabled (bool enabled ) |
| void | baseNameChanged (const QString & path ) |
| void | extensionChanged (const QString & extension ) |
| void | gammaCorrectEnabledChanged (bool enabled ) |
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.
注意: Please note that you shouldn't try to render a skybox with an orthographic projection.
Contains the base name of the Skybox.
訪問函數:
| QString | baseName () const |
| void | setBaseName (const QString & baseName ) |
通知程序信號:
| void | baseNameChanged (const QString & path ) |
Contains the extension of the filename for the skybox image, including the leading '.'.
The default value is: .png
訪問函數:
| QString | extension () const |
| void | setExtension (const QString & extension ) |
通知程序信號:
| void | extensionChanged (const QString & extension ) |
A boolean indicating whether gamma correction is enabled.
該特性在 Qt 5.9 引入。
訪問函數:
| bool | isGammaCorrectEnabled () const |
| void | setGammaCorrectEnabled (bool enabled ) |
通知程序信號:
| void | gammaCorrectEnabledChanged (bool enabled ) |
構造新的 Qt3DExtras::QSkyboxEntity 對象采用 parent 作為父級。
[slot]
void
QSkyboxEntity::
setBaseName
(const
QString
&
baseName
)
Sets the base name to baseName .
注意: setter 函數對於特性 baseName .
另請參閱 baseName ().
[slot]
void
QSkyboxEntity::
setExtension
(const
QString
&
extension
)
Sets the extension to extension .
注意: setter 函數對於特性 extension .
另請參閱 extension ().
[slot]
void
QSkyboxEntity::
setGammaCorrectEnabled
(
bool
enabled
)
Sets the gamma correction enable state to enabled .
注意: setter 函數對於特性 gammaCorrect .
該函數在 Qt 5.9 引入。
另請參閱 isGammaCorrectEnabled ().
Returns the base name of the Skybox.
注意: Getter function for property baseName.
另請參閱 setBaseName ().
Returns the extension
注意: Getter function for property extension.
另請參閱 setExtension ().
Returns true if gamma correction is enabled for this skybox.
注意: getter 函數對於特性 gammaCorrect .
該函數在 Qt 5.9 引入。