Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Static Public Member Functions

# ColorWriteAttrib Class Reference

Enables or disables writing to the color buffer. More...

Inheritance diagram for ColorWriteAttrib:

List of all members.

## 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.

## Detailed Description

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.

## Member Enumeration Documentation

enum Channels

Enumerator:

  COff |
  CRed |
  CGreen |
  CBlue |
  CRgb |
  CAlpha |
  CAll |

## Member Function Documentation

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.

All Classes Namespaces Functions Variables Enumerations Enumerator Properties