QColorMask Class
(Qt3DRender::QColorMask)Allows specifying which color components should be written to the currently bound frame buffer. More...
Header: | #include <QColorMask> |
qmake: | QT += 3drender |
Inherits: | Qt3DRender::QRenderState |
Properties
- 2 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QColorMask(Qt3DCore::QNode *parent = Q_NULLPTR) | |
~QColorMask() | |
bool | isAlpha() const |
bool | isBlue() const |
bool | isGreen() const |
bool | isRed() const |
- 1 public function inherited from Qt3DRender::QRenderState
- 6 public functions inherited from Qt3DCore::QNode
- 31 public functions inherited from QObject
Public Slots
- 2 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | alphaChanged(bool alpha) |
void | blueChanged(bool blue) |
void | greenChanged(bool green) |
void | redChanged(bool red) |
- 2 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Protected Functions
void | copy(const Qt3DCore::QNode *ref) |
- 3 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Additional Inherited Members
- 11 static public members inherited from QObject
- 1 static protected member inherited from Qt3DCore::QNode
Detailed Description
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.
Property Documentation
alpha : bool
Holds whether the alpha component should be written to the frame buffer.
Access functions:
bool | isAlpha() const |
void | setAlpha(bool alpha) |
Notifier signal:
void | alphaChanged(bool alpha) |
blue : bool
Holds whether the blue color component should be written to the frame buffer.
Access functions:
bool | isBlue() const |
void | setBlue(bool blue) |
Notifier signal:
void | blueChanged(bool blue) |
green : bool
Holds whether the green color component should be written to the frame buffer.
Access functions:
bool | isGreen() const |
void | setGreen(bool green) |
Notifier signal:
void | greenChanged(bool green) |
red : bool
Holds whether the red color component should be written to the frame buffer.
Access functions:
bool | isRed() const |
void | setRed(bool red) |
Notifier signal:
void | redChanged(bool red) |
© 2017 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.