Qt3DRender::QStencilMask Class

class Qt3DRender::QStencilMask

QStencilMask 类控制模板平面中各个位的前后写入。更多

头文件: #include <QStencilMask>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
在 QML 中: StencilMask
继承: Qt3DRender::QRenderState
状态:已废弃

属性

公共功能

QStencilMask(Qt3DCore::QNode *parent = nullptr)
uint backOutputMask() const
uint frontOutputMask() const

公共插槽

void setBackOutputMask(uint backOutputMask)
void setFrontOutputMask(uint frontOutputMask)

信号

void backOutputMaskChanged(uint backOutputMask)
void frontOutputMaskChanged(uint frontOutputMask)

详细说明

Qt3DRender::QStencilMask 类用于指定钢网测试后的钢网值写入掩码。可分别为正面和背面的多边形指定掩码。片段钢网值在写入钢网缓冲区之前,会与掩码进行比对。

另请参阅 Qt3DRender::QStencilTest

属性文档

backOutputMask : uint

保存背面多边形的片段模版值的写入掩码。

访问功能:

uint backOutputMask() const
void setBackOutputMask(uint backOutputMask)

通知信号:

void backOutputMaskChanged(uint backOutputMask)

frontOutputMask : uint

保存正面多边形的片段模版值的写入掩码。

访问功能:

uint frontOutputMask() const
void setFrontOutputMask(uint frontOutputMask)

通知信号:

void frontOutputMaskChanged(uint frontOutputMask)

成员函数 文档

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

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

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