QRenderAspect Class

class Qt3DRender::QRenderAspect

The QRenderAspect class. 更多...

頭: #include <Qt3DRender/QRenderAspect>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
繼承: Qt3DCore::QAbstractAspect
狀態: 棄用

公共類型

enum SubmissionType { Automatic, Manual }

公共函數

QRenderAspect (QObject * parent = nullptr)
QRenderAspect (Qt3DRender::QRenderAspect::SubmissionType submissionType , QObject * parent = nullptr)

詳細描述

成員類型文檔編製

enum QRenderAspect:: SubmissionType

常量 描述
Qt3DRender::QRenderAspect::Automatic 0 The QRenderAspect takes care of submitting rendering commands to the GPU.
Qt3DRender::QRenderAspect::Manual 1 The user will take care of telling the QRenderAspect when is the appropriate time to submit the rendering commands to the GPU.

成員函數文檔編製

[explicit] QRenderAspect:: QRenderAspect ( QObject * parent = nullptr)

The constructor creates a new QRenderAspect::QRenderAspect instance with the specified parent . This constructor will set the submission type to Automatic. parent

[explicit] QRenderAspect:: QRenderAspect ( Qt3DRender::QRenderAspect::SubmissionType submissionType , QObject * parent = nullptr)

The constructor creates a new QRenderAspect::QRenderAspect instance with the specified parentsubmissionType specifies whether the RenderAspect is in charge of performing the rendering submission or if the user will take care of it. parent