RenderAttribRegistry¶
-
class RenderAttribRegistry¶
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
digraph inheritance0b873f100e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "RenderAttribRegistry" [URL="acron.core.RenderAttribRegistry.html#acron.core.RenderAttribRegistry",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "RenderAttribRegistry" [arrowsize=0.75,style=""]; }- static RenderAttribRegistry.get_global_ptr()¶
- static RenderAttribRegistry.get_max_slots()¶
- RenderAttribRegistry.get_num_slots()¶
Returns the number of
RenderAttribslots that have been allocated. This is one more than the highest slot number in use.
- RenderAttribRegistry.get_num_sorted_slots()¶
Returns the number of entries in the sorted_slots list.
- RenderAttribRegistry.get_slot()¶
Returns the slot number assigned to the indicated
TypeHandle, or 0 if no slot number has been assigned.
- RenderAttribRegistry.get_slot_default()¶
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.
- RenderAttribRegistry.get_slot_sort()¶
Returns the sort number associated with slot n.
- RenderAttribRegistry.get_slot_type()¶
Returns the
TypeHandleassociated with slot n.
- RenderAttribRegistry.get_sorted_slot()¶
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.
- RenderAttribRegistry.set_slot_sort()¶
Changes the sort number associated with slot n.