RenderAttribRegistry
from panda3d.core import RenderAttribRegistry
- class RenderAttribRegistry
Bases:
DTOOL_SUPER_BASE
This class is used to associate each RenderAttrib with a different slot index at runtime, so we can store a list of RenderAttribs in the RenderState object, and very quickly look them up by type.
Inheritance diagram
- __init__(*args, **kwargs)
- getMaxSlots()
C++ Interface: get_max_slots()
- getNumSlots()
C++ Interface: get_num_slots(RenderAttribRegistry self)
- /**
Returns the number of RenderAttrib slots that have been allocated. This is
one more than the highest slot number in use.
*/
- getNumSortedSlots()
C++ Interface: get_num_sorted_slots(RenderAttribRegistry self)
- /**
Returns the number of entries in the sorted_slots list.
*/
- getSlot()
C++ Interface: get_slot(RenderAttribRegistry self, TypeHandle type_handle)
- /**
Returns the slot number assigned to the indicated TypeHandle, or 0 if no
slot number has been assigned.
*/
- getSlotDefault()
C++ Interface: get_slot_default(RenderAttribRegistry self, int slot)
- /**
Returns the default RenderAttrib object associated with slot n. This is
the attrib that should be applied in the absence of any other attrib of
this type.
*/
- getSlotSort()
C++ Interface: get_slot_sort(RenderAttribRegistry self, int slot)
- /**
Returns the sort number associated with slot n.
*/
- getSlotType()
C++ Interface: get_slot_type(RenderAttribRegistry self, int slot)
- /**
Returns the TypeHandle associated with slot n.
*/
- getSortedSlot()
C++ Interface: get_sorted_slot(RenderAttribRegistry self, int n)
- /**
Returns the nth slot in sorted order. By traversing this list, you will
retrieve all the slot numbers in order according to their registered sort
value.
*/
- get_max_slots()
C++ Interface: get_max_slots()
- get_num_slots()
C++ Interface: get_num_slots(RenderAttribRegistry self)
- /**
Returns the number of RenderAttrib slots that have been allocated. This is
one more than the highest slot number in use.
*/
- get_num_sorted_slots()
C++ Interface: get_num_sorted_slots(RenderAttribRegistry self)
- /**
Returns the number of entries in the sorted_slots list.
*/
- get_slot()
C++ Interface: get_slot(RenderAttribRegistry self, TypeHandle type_handle)
- /**
Returns the slot number assigned to the indicated TypeHandle, or 0 if no
slot number has been assigned.
*/
- get_slot_default()
C++ Interface: get_slot_default(RenderAttribRegistry self, int slot)
- /**
Returns the default RenderAttrib object associated with slot n. This is
the attrib that should be applied in the absence of any other attrib of
this type.
*/
- get_slot_sort()
C++ Interface: get_slot_sort(RenderAttribRegistry self, int slot)
- /**
Returns the sort number associated with slot n.
*/
- get_slot_type()
C++ Interface: get_slot_type(RenderAttribRegistry self, int slot)
- /**
Returns the TypeHandle associated with slot n.
*/
- get_sorted_slot()
C++ Interface: get_sorted_slot(RenderAttribRegistry self, int n)
- /**
Returns the nth slot in sorted order. By traversing this list, you will
retrieve all the slot numbers in order according to their registered sort
value.
*/