Public Member Functions | |
Attribute (const RenderAttrib *attrib, int override) | |
Attribute (int override) | |
This constructor is only used when reading the RenderState from a bam file. | |
Attribute (TypeHandle type) | |
This constructor makes an invalid Attribute with no RenderAttrib pointer; its purpose is just to make an object we can use to look up a particular type in the Attribute set. | |
Attribute (const Attribute ©) | |
void | operator= (const Attribute ©) |
bool | operator< (const Attribute &other) const |
This is used by the Attributes set to uniquify RenderAttributes by type. | |
int | compare_to (const Attribute &other) const |
Provides an indication of whether a particular attribute is equivalent to another one, for purposes of generating unique RenderStates. | |
Public Attributes | |
TypeHandle | _type |
ConstPointerTo< RenderAttrib > | _attrib |
int | _override |
|
Definition at line 57 of file renderState.I. References INLINE. |
|
This constructor is only used when reading the RenderState from a bam file. At this point, the attribute pointer is unknown. Definition at line 77 of file renderState.I. References NULL. |
|
This constructor makes an invalid Attribute with no RenderAttrib pointer; its purpose is just to make an object we can use to look up a particular type in the Attribute set.
Definition at line 97 of file renderState.I. |
|
Definition at line 112 of file renderState.I. |
|
Provides an indication of whether a particular attribute is equivalent to another one, for purposes of generating unique RenderStates. This should compare all properties of the Attribute, but it is important that the type is compared first, to be consistent with the ordering defined by operator <. Definition at line 171 of file renderState.I. |
|
This is used by the Attributes set to uniquify RenderAttributes by type. Only one RenderAttrib of a given type is allowed in the set. This ordering must also match the ordering reported by compare_to(). Definition at line 148 of file renderState.I. |
|
Definition at line 127 of file renderState.I. References _attrib, _override, _type, TypeHandle::get_index(), and INLINE. |
|
Definition at line 191 of file renderState.h. Referenced by Attribute(), RenderState::do_invert_compose(), operator=(), and RenderState::remove_attrib(). |
|
Definition at line 192 of file renderState.h. Referenced by Attribute(), and operator=(). |
|
Definition at line 190 of file renderState.h. Referenced by Attribute(), RenderState::do_invert_compose(), and operator=(). |