Enable and disable writing of frame buffer color components More...
#include <Inventor/nodes/SoColorMask.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoColorMask () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFBool | red |
SoSFBool | green |
SoSFBool | blue |
SoSFBool | alpha |
Specifies whether individual color components in the frame buffer will be modified during rendering.
The color mask will affect all draw buffers.
"Hidden Line Rendering" is a typical use case where a SoColorMask can be useful: faces are first rendered with red, green, blue and alpha masks to FALSE, so that only depth is written. Then, the shape is rendered in wireframe mode, with all masks to TRUE.
To control modifying the depth buffer during rendering see SoDepthBuffer.
red | TRUE |
green | TRUE |
blue | TRUE |
alpha | TRUE |
SoColorMask::SoColorMask | ( | ) |
static SoType SoColorMask::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
virtual SoType SoColorMask::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
Specifies whether or not the alpha component can be written into the frame buffer.
The default value is TRUE, indicating that the color component can be written.
Specifies whether or not the blue component can be written into the frame buffer.
The default value is TRUE, indicating that the color component can be written.
Specifies whether or not the green component can be written into the frame buffer.
The default value is TRUE, indicating that the color component can be written.
Specifies whether or not the red component can be written into the frame buffer.
The default value is TRUE, indicating that the color component can be written.