W3cubDocs

/Qt 5.13

QFrustumCulling Class

(Qt3DRender::QFrustumCulling)

Enable frustum culling for the FrameGraph. More...

Header: #include <QFrustumCulling>
qmake: QT += 3drender
Since: Qt 5.7
Instantiated By: FrustumCulling
Inherits: Qt3DRender::QFrameGraphNode

This class was introduced in Qt 5.7.

Public Functions

QFrustumCulling(Qt3DCore::QNode *parent = nullptr)

Detailed Description

A QFrustumCulling class enables frustum culling of the drawable entities based on the camera view and QGeometry bounds of the entities. If QFrustumCulling is present in the FrameGraph, only the entities whose QGeometry bounds intersect with the camera frustum, i.e. the view of the camera, are drawn. If QFrustumCulling is not present, all drawable entities will be drawn. The camera is selected by a QCameraSelector frame graph node in the current hierarchy. Frustum culling can save a lot of GPU processing time when the rendered scene is complex.

See also QCameraSelector.

Member Function Documentation

QFrustumCulling::QFrustumCulling(Qt3DCore::QNode *parent = nullptr)

The constructor creates an instance with the specified parent.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.13/qt3drender-qfrustumculling.html