QForwardRenderer Class
(Qt3D::QForwardRenderer)The Qt3D::QForwardRenderer provides a default FrameGraph implementation of a forward renderer. More...
Header: | #include <QForwardRenderer> |
qmake: | QT += 3drenderer |
Since: | Qt 5.5 |
Inherits: | QTechniqueFilter |
Properties
- camera : QEntity *
- clearColor : QColor
- viewportRect : QRectF
- 1 property inherited from Qt3D::QFrameGraphNode
Public Functions
QForwardRenderer(QNode * parent = 0) | |
~QForwardRenderer() | |
QEntity * | camera() const |
QColor | clearColor() const |
void | setCamera(QEntity * camera) |
void | setClearColor(const QColor & clearColor) |
void | setViewportRect(const QRectF & viewportRect) |
QRectF | viewportRect() const |
- 6 public functions inherited from Qt3D::QTechniqueFilter
- 3 public functions inherited from Qt3D::QFrameGraphNode
Signals
void | cameraChanged() |
void | clearColorChanged() |
void | viewportRectChanged() |
- 1 signal inherited from Qt3D::QFrameGraphNode
Additional Inherited Members
- 1 protected function inherited from Qt3D::QTechniqueFilter
Detailed Description
The Qt3D::QForwardRenderer provides a default FrameGraph implementation of a forward renderer.
Forward rendering is how OpenGL is traditionally. It renders directly to the backbuffer one object at a time shading each one as it goes.
Internally the Qt3D::QForwardRenderer is a subclass of Qt3D::QTechniqueFilter. This a is a single leaf Framegraph tree which contains a Qt3D::QViewport, a Qt3D::QCameraSelector and a Qt3D::QClearBuffer. The Qt3D::QForwardRenderer has a default requirement annotation whose name is "renderingStyle" and value "forward". If you need to filter out your techniques, you should do so based on that annocation.
By default the viewport occupies the whole screen and the clear color is white.
Property Documentation
camera : QEntity *
Holds the current QEntity camera used to render the scene.
Note: A camera is a QEntity that has a QCameraLens as one of its components.
Access functions:
QEntity * | camera() const |
void | setCamera(QEntity * camera) |
Notifier signal:
void | cameraChanged() |
clearColor : QColor
Holds the current clearColor.
Access functions:
QColor | clearColor() const |
void | setClearColor(const QColor & clearColor) |
Notifier signal:
void | clearColorChanged() |
viewportRect : QRectF
Holds the current viewport rect.
Access functions:
QRectF | viewportRect() const |
void | setViewportRect(const QRectF & viewportRect) |
Notifier signal:
void | viewportRectChanged() |
Member Function Documentation
QForwardRenderer::QForwardRenderer(QNode * parent = 0)
Constructs a new Qt3D::QForwardRenderer instance with parent object parent.
QForwardRenderer::~QForwardRenderer()
Destroys the QForwardRenderer instance.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.