本页内容

Qt3DRender::QNoDepthMask Class

class Qt3DRender::QNoDepthMask

禁用深度写入。更多...

标题: #include <qnodepthmask.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
在 QML 中: NoDepthMask
继承自: Qt3DRender::QRenderState
状态: 已弃用

该类已弃用。我们强烈建议不要在新代码中使用它。

公共函数

QNoDepthMask(Qt3DCore::QNode *parent = nullptr)

详细说明

Qt3DRender::QNoDepthMask 类用于禁用将片段深度写入深度缓冲区。

另请参阅 Qt3DRender::QDepthTest 。

成员函数文档

[explicit] QNoDepthMask::QNoDepthMask(Qt3DCore::QNode *parent = nullptr)

该构造函数会使用指定的parent 创建一个新的QNoDepthMask::QNoDepthMask 实例。

© 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.