QStencilMask Class

(Qt3DRender::QStencilMask)

The QStencilMask class controls the front and back writing of individual bits in the stencil planes. 更多...

头文件: #include <QStencilMask>
qmake: QT += 3drender
开始支持版本: Qt 5.7
Instantiated By: 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)

其他继承的成员

详细描述

The QStencilMask class controls the front and back writing of individual bits in the stencil planes.

A Qt3DRender::QStencilMask class specifies a write mask for the stencil values after the stencil test. Mask can be specified separately for the front-facing and back-facing polygons. The fragment stencil value is and'd with the mask before it is written to the stencil buffer.

参见 Qt3DRender::QStencilTest.

属性

backOutputMask : uint

Holds the write mask for the fragment stencil values for back-facing polygons.

访问函数:

uint backOutputMask() const
void setBackOutputMask(uint backOutputMask)

Notifier signal:

void backOutputMaskChanged(uint backOutputMask)

frontOutputMask : uint

Holds the write mask for the fragment stencil values for front-facing polygons.

访问函数:

uint frontOutputMask() const
void setFrontOutputMask(uint frontOutputMask)

Notifier signal:

void frontOutputMaskChanged(uint frontOutputMask)

成员函数

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

Default constructs an instance of QStencilMask.