18 #include <Qt3DRender/QRenderCapture>
19 #include <Qt3DExtras/Qt3DWindow>
20 #include <Qt3DExtras/QForwardRenderer>
25 mWindow3D =
new Qt3DExtras::Qt3DWindow;
27 mCapture =
new Qt3DRender::QRenderCapture;
28 mWindow3D->activeFrameGraph()->setParent( mCapture );
29 mWindow3D->setActiveFrameGraph( mCapture );
39 Qt3DRender::QRenderCaptureReply *captureReply;
40 captureReply = mCapture->requestCapture();
41 connect( captureReply, &Qt3DRender::QRenderCaptureReply::completed,
this, [ = ]
44 captureReply->deleteLater();
50 mWindow3D->defaultFrameGraph()->setClearColor( color );
55 mWindow3D->defaultFrameGraph()->setFrustumCullingEnabled( enabled );
60 mWindow3D->setRootEntity( root );
65 return mWindow3D->renderSettings();
70 return mWindow3D->camera();
75 return mWindow3D->size();