RenderAttribRegistry
from panda3d.core import RenderAttribRegistry
- class RenderAttribRegistry
Bases:
This class is used to associate each
RenderAttribwith a different slot index at runtime, so we can store a list ofRenderAttribsin theRenderStateobject, and very quickly look them up by type.Inheritance diagram
- static getGlobalPtr() RenderAttribRegistry
- getNumSlots() int
Returns the number of
RenderAttribslots that have been allocated. This is one more than the highest slot number in use.
- getSlot(type_handle: TypeHandle) int
Returns the slot number assigned to the indicated
TypeHandle, or 0 if no slot number has been assigned.
- getSlotDefault(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.
- getSlotType(slot: int) TypeHandle
Returns the
TypeHandleassociated with slot n.
