ColorAttrib
from panda3d.core import ColorAttrib
- class ColorAttrib
Bases:
RenderAttrib
Indicates what color should be applied to renderable geometry.
Inheritance diagram
- TFlat = 1
- TOff = 2
- TVertex = 0
- T_flat = 1
- T_off = 2
- T_vertex = 0
- __init__(*args, **kwargs)
- class_slot = 6
- color
- color_type
- getClassSlot()
C++ Interface: get_class_slot()
- getClassType()
C++ Interface: get_class_type()
- getColor()
C++ Interface: get_color(ColorAttrib self)
- /**
If the type is T_flat or T_off, this returns the color that will be applied
to geometry. If the type is T_vertex, this is meaningless.
*/
- getColorType()
C++ Interface: get_color_type(ColorAttrib self)
- /**
Returns the type of color specified by this ColorAttrib. The options are:
T_vertex - use the vertex color specified in the geometry itself.
T_flat - use the color specified in this ColorAttrib for all geometry. You
can get this color via get_color().
T_off - use the color white.
*/
- get_class_slot()
C++ Interface: get_class_slot()
- get_class_type()
C++ Interface: get_class_type()
- get_color()
C++ Interface: get_color(ColorAttrib self)
- /**
If the type is T_flat or T_off, this returns the color that will be applied
to geometry. If the type is T_vertex, this is meaningless.
*/
- get_color_type()
C++ Interface: get_color_type(ColorAttrib self)
- /**
Returns the type of color specified by this ColorAttrib. The options are:
T_vertex - use the vertex color specified in the geometry itself.
T_flat - use the color specified in this ColorAttrib for all geometry. You
can get this color via get_color().
T_off - use the color white.
*/
- makeDefault()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/
- makeFlat()
C++ Interface: make_flat(const LVecBase4f color)
- /**
Constructs a new ColorAttrib object that indicates geometry should be
rendered in the indicated color.
*/
- makeOff()
C++ Interface: make_off()
- /**
Constructs a new ColorAttrib object that indicates geometry should be
rendered in white.
*/
- makeVertex()
C++ Interface: make_vertex()
- /**
Constructs a new ColorAttrib object that indicates geometry should be
rendered according to its own vertex color.
*/
- make_default()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/
- make_flat()
C++ Interface: make_flat(const LVecBase4f color)
- /**
Constructs a new ColorAttrib object that indicates geometry should be
rendered in the indicated color.
*/