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;
72 void setSize( QSize s );
79 Qt3DRender::QCamera *
camera()
override;
80 QSize
size()
const override;
81 QSurface *
surface()
const override;
86 void createRenderTarget();
87 void createFrameGraph();
91 QSize mSize = QSize( 640, 480 );
92 Qt3DRender::QCamera *mCamera =
nullptr;
93 QOffscreenSurface *mOffscreenSurface =
nullptr;
94 Qt3DRender::QRenderCaptureReply *mReply =
nullptr;
97 Qt3DCore::QAspectEngine *mAspectEngine =
nullptr;
98 Qt3DRender::QRenderAspect *mRenderAspect =
nullptr;
99 Qt3DLogic::QLogicAspect *mLogicAspect =
nullptr;
100 Qt3DRender::QRenderSettings *mRenderSettings =
nullptr;
101 Qt3DCore::QNode *mSceneRoot =
nullptr;
102 Qt3DCore::QEntity *mRoot =
nullptr;
105 Qt3DRender::QRenderTarget *mTextureTarget =
nullptr;
106 Qt3DRender::QRenderTargetOutput *mTextureOutput =
nullptr;
107 Qt3DRender::QTexture2D *mTexture =
nullptr;
108 Qt3DRender::QRenderTargetOutput *mDepthTextureOutput =
nullptr;
109 Qt3DRender::QTexture2D *mDepthTexture =
nullptr;
112 Qt3DRender::QRenderSurfaceSelector *mSurfaceSelector =
nullptr;
113 Qt3DRender::QRenderTargetSelector *mRenderTargetSelector =
nullptr;
114 Qt3DRender::QViewport *mViewport =
nullptr;
115 Qt3DRender::QClearBuffers *mClearBuffers =
nullptr;
116 Qt3DRender::QCameraSelector *mCameraSelector =
nullptr;
117 Qt3DRender::QRenderCapture *mRenderCapture =
nullptr;
121 #endif // QGSOFFSCREEN3DENGINE_H