CullFaceAttrib
from panda3d.core import CullFaceAttrib
- class CullFaceAttrib
Bases:
RenderAttrib
Indicates which faces should be culled based on their vertex ordering.
Inheritance diagram
- MCullClockwise = 1
- MCullCounterClockwise = 2
- MCullNone = 0
- MCullUnchanged = 3
- M_cull_clockwise = 1
- M_cull_counter_clockwise = 2
- M_cull_none = 0
- M_cull_unchanged = 3
- __init__(*args, **kwargs)
- class_slot = 10
- effective_mode
- getActualMode()
C++ Interface: get_actual_mode(CullFaceAttrib self)
- /**
Returns the actual culling mode, without considering the effects of the
reverse flag. See also get_effective_mode().
*/
- getClassSlot()
C++ Interface: get_class_slot()
- getClassType()
C++ Interface: get_class_type()
- getEffectiveMode()
C++ Interface: get_effective_mode(CullFaceAttrib self)
- /**
Returns the effective culling mode. This is the same as the actual culling
mode, unless the reverse flag is set, which swaps CW for CCW and vice-
versa. Also, M_cull_unchanged is mapped to M_cull_none.
*/
- getReverse()
C++ Interface: get_reverse(CullFaceAttrib self)
- /**
Returns the ‘reverse’ flag. If this is true, the actual cull direction
(clockwise vs. counterclockwise) is the reverse of what is specified here.
This allows support for make_reverse(), which defines a CullFaceAttrib that
reverses whatever the sense of culling would have been.
*/
- get_actual_mode()
C++ Interface: get_actual_mode(CullFaceAttrib self)
- /**
Returns the actual culling mode, without considering the effects of the
reverse flag. See also get_effective_mode().
*/
- get_class_slot()
C++ Interface: get_class_slot()
- get_class_type()
C++ Interface: get_class_type()
- get_effective_mode()
C++ Interface: get_effective_mode(CullFaceAttrib self)
- /**
Returns the effective culling mode. This is the same as the actual culling
mode, unless the reverse flag is set, which swaps CW for CCW and vice-
versa. Also, M_cull_unchanged is mapped to M_cull_none.
*/
- get_reverse()
C++ Interface: get_reverse(CullFaceAttrib self)
- /**
Returns the ‘reverse’ flag. If this is true, the actual cull direction
(clockwise vs. counterclockwise) is the reverse of what is specified here.
This allows support for make_reverse(), which defines a CullFaceAttrib that
reverses whatever the sense of culling would have been.
*/
- make()
C++ Interface: make(int mode)
- /**
Constructs a new CullFaceAttrib object that specifies how to cull geometry.
By Panda convention, vertices are ordered counterclockwise when seen from
the front, so the M_cull_clockwise will cull backfacing polygons.
M_cull_unchanged is an identity attrib; if this is applied to vertices
without any other intervening attrib, it is the same as applying the
default attrib.
*/
- 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.
*/
- makeReverse()
C++ Interface: make_reverse()
- /**
Constructs a new CullFaceAttrib object that reverses the effects of any
other CullFaceAttrib objects in the scene graph. M_cull_clockwise will be
treated as M_cull_counter_clockwise, and vice-versa. M_cull_none is
unchanged.
*/
- 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_reverse()
C++ Interface: make_reverse()
- /**
Constructs a new CullFaceAttrib object that reverses the effects of any
other CullFaceAttrib objects in the scene graph. M_cull_clockwise will be
treated as M_cull_counter_clockwise, and vice-versa. M_cull_none is
unchanged.
*/
- mode
- reverse