from panda3d.core import RenderAttribRegistry
- class RenderAttribRegistry
- get_num_slots() int
Returns the number of
RenderAttribslots that have been allocated. This is one more than the highest slot number in use.
- get_slot(type_handle: TypeHandle) int
Returns the slot number assigned to the indicated
TypeHandle, or 0 if no slot number has been assigned.
- get_slot_default(slot: int) RenderAttrib
Returns the default
RenderAttribobject associated with slot n. This is the attrib that should be applied in the absence of any other attrib of this type.
- get_sorted_slot(n: int) int
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.