Enables or disables writing to the color buffer. More...
Public Types | |
enum | Channels { COff = 0, CRed = 1, CGreen = 2, CBlue = 4, CRgb = 7, CAlpha = 8, CAll = 15 } |
Public Member Functions | |
unsigned int | getChannels () |
Returns the mask of color channels that are enabled by this attrib. | |
Static Public Member Functions | |
static int | getClassSlot () |
static TypeHandle | getClassType () |
static RenderAttrib const | make (unsigned int channels) |
Constructs a new ColorWriteAttrib object. | |
static RenderAttrib const | makeDefault () |
Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be. |
Enables or disables writing to the color buffer.
This is primarily useful for certain special effects in which it is important to write to the depth buffer without affecting the color buffer.
enum Channels |
unsigned int getChannels | ( | ) |
Returns the mask of color channels that are enabled by this attrib.
static int getClassSlot | ( | ) | [static] |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from RenderAttrib.
static RenderAttrib const make | ( | unsigned int | channels | ) | [static] |
Constructs a new ColorWriteAttrib object.
static RenderAttrib const makeDefault | ( | ) | [static] |
Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.