Qt3DRender::QFrustumCulling Class
class Qt3DRender::QFrustumCulling为 FrameGraph 启用视锥体剔除。更多内容...
| 头文件: | #include <qfrustumculling.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| 在 QML 中: | FrustumCulling |
| 继承自: | Qt3DRender::QFrameGraphNode |
| 状态: | 已弃用 |
该类已弃用。我们强烈建议不要在新代码中使用它。
公共函数
| QFrustumCulling(Qt3DCore::QNode *parent = nullptr) |
详细说明
QFrustumCulling 类可根据摄像机视图和可绘制实体的 QGeometry 边界,对可绘制实体进行视锥体剔除。如果 FrameGraph 中存在 QFrustumCulling,则仅绘制那些 QGeometry 边界与摄像机视锥体(即摄像机视图)相交的实体。 如果不存在 QFrustumCulling,则所有可绘制实体都会被绘制。摄像机由当前层级结构中的QCameraSelector 帧图节点选定。当渲染场景较为复杂时,视锥体剔除可以节省大量 GPU 处理时间。
另请参阅 QCameraSelector 。
成员函数文档
[explicit] QFrustumCulling::QFrustumCulling(Qt3DCore::QNode *parent = nullptr)
该构造函数会根据指定的parent 创建一个实例。
© 2026 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.