16 #ifndef QGSOFFSCREEN3DENGINE_H 17 #define QGSOFFSCREEN3DENGINE_H 23 class QOffscreenSurface;
33 class QCameraSelector;
37 class QRenderCaptureReply;
39 class QRenderTargetSelector;
40 class QRenderTargetOutput;
41 class QRenderSurfaceSelector;
69 void setSize( QSize s );
71 void setClearColor(
const QColor &color )
override;
72 void setFrustumCullingEnabled(
bool enabled )
override;
73 void setRootEntity( Qt3DCore::QEntity *root )
override;
75 Qt3DRender::QRenderSettings *renderSettings()
override;
76 Qt3DRender::QCamera *camera()
override;
77 QSize size()
const override;
79 void requestCaptureImage()
override;
82 void createRenderTarget();
83 void createFrameGraph();
87 QSize mSize = QSize( 640, 480 );
88 Qt3DRender::QCamera *mCamera =
nullptr;
89 QOffscreenSurface *mOffscreenSurface =
nullptr;
90 Qt3DRender::QRenderCaptureReply *mReply =
nullptr;
93 Qt3DCore::QAspectEngine *mAspectEngine =
nullptr;
94 Qt3DRender::QRenderAspect *mRenderAspect =
nullptr;
95 Qt3DLogic::QLogicAspect *mLogicAspect =
nullptr;
96 Qt3DRender::QRenderSettings *mRenderSettings =
nullptr;
97 Qt3DCore::QNode *mSceneRoot =
nullptr;
98 Qt3DCore::QEntity *mRoot =
nullptr;
101 Qt3DRender::QRenderTarget *mTextureTarget =
nullptr;
102 Qt3DRender::QRenderTargetOutput *mTextureOutput =
nullptr;
103 Qt3DRender::QTexture2D *mTexture =
nullptr;
104 Qt3DRender::QRenderTargetOutput *mDepthTextureOutput =
nullptr;
105 Qt3DRender::QTexture2D *mDepthTexture =
nullptr;
108 Qt3DRender::QRenderSurfaceSelector *mSurfaceSelector =
nullptr;
109 Qt3DRender::QRenderTargetSelector *mRenderTargetSelector =
nullptr;
110 Qt3DRender::QViewport *mViewport =
nullptr;
111 Qt3DRender::QClearBuffers *mClearBuffers =
nullptr;
112 Qt3DRender::QCameraSelector *mCameraSelector =
nullptr;
113 Qt3DRender::QRenderCapture *mRenderCapture =
nullptr;
117 #endif // QGSOFFSCREEN3DENGINE_H
3 Off-screen 3D engine implementation.
3 Base class for 3D engine implementation.