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;
73 void setSize( QSize s )
override;
80 Qt3DRender::QCamera *
camera()
override;
81 QSize
size()
const override;
82 QSurface *
surface()
const override;
88 QSize mSize = QSize( 640, 480 );
89 Qt3DRender::QCamera *mCamera =
nullptr;
90 QOffscreenSurface *mOffscreenSurface =
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;
virtual void setClearColor(const QColor &color)=0
Sets background color of the scene.
virtual Qt3DRender::QRenderSettings * renderSettings()=0
Returns access to the engine's render settings (the frame graph can be accessed from here)
virtual Qt3DRender::QCamera * camera()=0
Returns pointer to the engine's camera entity.
virtual QSurface * surface() const =0
Returns the surface of the engine.
virtual void setSize(QSize s)=0
Sets the size of the rendering area (in pixels)
virtual void setFrustumCullingEnabled(bool enabled)=0
Sets whether frustum culling is enabled (this should make rendering faster by not rendering entities ...
virtual void setRootEntity(Qt3DCore::QEntity *root)=0
Sets root entity of the 3D scene.
virtual QSize size() const =0
Returns size of the engine's rendering area in pixels.
void imageCaptured(const QImage &image)
Emitted after a call to requestCaptureImage() to return the captured image.