23 return compose_impl(other);
40 return invert_compose_impl(other);
51INLINE
int RenderAttrib::
55 TypeHandle type = get_type();
56 TypeHandle other_type = other.get_type();
57 if (type != other_type) {
62 return compare_to_impl(&other);
68INLINE
size_t RenderAttrib::
82 return return_unique((RenderAttrib *)
this);
88INLINE
void RenderAttrib::
90 size_t hash = get_hash_impl();
102 RenderAttribRegistry *reg = RenderAttribRegistry::get_global_ptr();
103 return reg->
register_slot(type_handle, sort, default_attrib);
int register_slot(TypeHandle type_handle, int sort, RenderAttrib *default_attrib)
Adds the indicated TypeHandle to the registry, if it is not there already, and returns a unique slot ...
This is the base class for a number of render attributes (other than transform) that may be set on sc...
static int register_slot(TypeHandle type_handle, int sort, RenderAttrib *default_attrib)
Adds the indicated TypeHandle to the registry, if it is not there already, and returns a unique slot ...
TypeHandle is the identifier used to differentiate C++ class types.
get_index
Returns the integer index associated with this TypeHandle.
static size_t add_hash(size_t start, const int &key)