The QRenderSettings class holds settings related to rendering process and host the active FrameGraph . 更多...
头: | #include <QRenderSettings> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
实例化: | RenderSettings |
继承: | Qt3DCore::QComponent |
enum | RenderPolicy { OnDemand, Always } |
Qt3DRender::QFrameGraphNode * | activeFrameGraph () const |
Qt3DRender::QPickingSettings * | pickingSettings () |
Qt3DRender::QRenderCapabilities * | renderCapabilities () |
Qt3DRender::QRenderSettings::RenderPolicy | renderPolicy () const |
void | setActiveFrameGraph (Qt3DRender::QFrameGraphNode * activeFrameGraph ) |
void | setRenderPolicy (Qt3DRender::QRenderSettings::RenderPolicy renderPolicy ) |
void | activeFrameGraphChanged (Qt3DRender::QFrameGraphNode * activeFrameGraph ) |
void | renderPolicyChanged (Qt3DRender::QRenderSettings::RenderPolicy renderPolicy ) |
The QRenderSettings component must be set as a component of the scene root entity. It specifies render policy and picking settings, as well as hosts the active FrameGraph .
The render policy.
常量 | 值 | 描述 |
---|---|---|
Qt3DRender::QRenderSettings::OnDemand
|
0
|
The FrameGraph is rendered only when something changes. |
Qt3DRender::QRenderSettings::Always
|
1
|
The FrameGraph is rendered continuously, even if nothing has changed. |
Holds the currently active FrameGraph .
访问函数:
Qt3DRender::QFrameGraphNode * | activeFrameGraph () const |
void | setActiveFrameGraph (Qt3DRender::QFrameGraphNode * activeFrameGraph ) |
通知程序信号:
void | activeFrameGraphChanged (Qt3DRender::QFrameGraphNode * activeFrameGraph ) |
[read-only]
pickingSettings
:
Qt3DRender::QPickingSettings
* const
Holds the current pick settings for the FrameGraph .
访问函数:
Qt3DRender::QPickingSettings * | pickingSettings () |
[read-only]
renderCapabilities
:
Qt3DRender::QRenderCapabilities
* const
Holds the details of the supported rendering engine
访问函数:
Qt3DRender::QRenderCapabilities * | renderCapabilities () |
Holds the current render policy.
访问函数:
Qt3DRender::QRenderSettings::RenderPolicy | renderPolicy () const |
void | setRenderPolicy (Qt3DRender::QRenderSettings::RenderPolicy renderPolicy ) |
通知程序信号:
void | renderPolicyChanged (Qt3DRender::QRenderSettings::RenderPolicy renderPolicy ) |