QColorMask Class
(Qt3DRender::QColorMask)Allows specifying which color components should be written to the currently bound frame buffer. 更多...
头文件: | #include <QColorMask> |
qmake: | QT += 3drender |
开始支持版本: | Qt 5.7 |
Instantiated By: | ColorMask |
基类: | Qt3DRender::QRenderState |
属性
- alphaMasked : bool
- blueMasked : bool
- greenMasked : bool
- redMasked : bool
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QColorMask(Qt3DCore::QNode *parent = nullptr) | |
bool | isAlphaMasked() const |
bool | isBlueMasked() const |
bool | isGreenMasked() const |
bool | isRedMasked() const |
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setAlphaMasked(bool alphaMasked) |
void | setBlueMasked(bool blueMasked) |
void | setGreenMasked(bool greenMasked) |
void | setRedMasked(bool redMasked) |
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | alphaMaskedChanged(bool alphaMasked) |
void | blueMaskedChanged(bool blueMasked) |
void | greenMaskedChanged(bool greenMasked) |
void | redMaskedChanged(bool redMasked) |
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
其他继承的成员
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
Allows specifying which color components should be written to the currently bound frame buffer.
By default, the property for each color component (red, green, blue, alpha) is set to true
which means they will be written to the frame buffer. Setting any of the color component to false
will prevent it from being written into the frame buffer.
属性
alphaMasked : bool
Holds whether the alphaMasked component should be written to the frame buffer.
访问函数:
bool | isAlphaMasked() const |
void | setAlphaMasked(bool alphaMasked) |
Notifier signal:
void | alphaMaskedChanged(bool alphaMasked) |
blueMasked : bool
Holds whether the blue color component should be written to the frame buffer.
访问函数:
bool | isBlueMasked() const |
void | setBlueMasked(bool blueMasked) |
Notifier signal:
void | blueMaskedChanged(bool blueMasked) |
greenMasked : bool
Holds whether the green color component should be written to the frame buffer.
访问函数:
bool | isGreenMasked() const |
void | setGreenMasked(bool greenMasked) |
Notifier signal:
void | greenMaskedChanged(bool greenMasked) |
redMasked : bool
Holds whether the red color component should be written to the frame buffer.
访问函数:
bool | isRedMasked() const |
void | setRedMasked(bool redMasked) |
Notifier signal:
void | redMaskedChanged(bool redMasked) |