ColorWriteAttrib
from panda3d.core import ColorWriteAttrib
- class ColorWriteAttrib
Bases:
RenderAttrib
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.
Inheritance diagram
- CAll = 15
- CAlpha = 8
- CBlue = 4
- CGreen = 2
- COff = 0
- CRed = 1
- CRgb = 7
- C_all = 15
- C_alpha = 8
- C_blue = 4
- C_green = 2
- C_off = 0
- C_red = 1
- C_rgb = 7
- __init__(*args, **kwargs)
- channels
- class_slot = 9
- getChannels()
C++ Interface: get_channels(ColorWriteAttrib self)
- /**
Returns the mask of color channels that are enabled by this attrib.
*/
- getClassSlot()
C++ Interface: get_class_slot()
- getClassType()
C++ Interface: get_class_type()
- get_channels()
C++ Interface: get_channels(ColorWriteAttrib self)
- /**
Returns the mask of color channels that are enabled by this attrib.
*/
- get_class_slot()
C++ Interface: get_class_slot()
- get_class_type()
C++ Interface: get_class_type()