Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

RenderState::Attribute Class Reference

List of all members.

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 &copy)
void operator= (const Attribute &copy)
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

Constructor & Destructor Documentation

RenderState::Attribute::Attribute const RenderAttrib attrib,
int  override
[inline]
 

Definition at line 57 of file renderState.I.

References INLINE.

RenderState::Attribute::Attribute int  override  )  [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.

RenderState::Attribute::Attribute TypeHandle  type  )  [inline]
 

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.

References _attrib, _override, _type, and INLINE.

RenderState::Attribute::Attribute const Attribute &  copy  )  [inline]
 

Definition at line 112 of file renderState.I.

References _type, and INLINE.


Member Function Documentation

int RenderState::Attribute::compare_to const Attribute &  other  )  const [inline]
 

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.

bool RenderState::Attribute::operator< const Attribute &  other  )  const [inline]
 

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.

void RenderState::Attribute::operator= const Attribute &  copy  )  [inline]
 

Definition at line 127 of file renderState.I.

References _attrib, _override, _type, TypeHandle::get_index(), and INLINE.


Member Data Documentation

ConstPointerTo< RenderAttrib > RenderState::Attribute::_attrib
 

Definition at line 191 of file renderState.h.

Referenced by Attribute(), RenderState::do_invert_compose(), operator=(), and RenderState::remove_attrib().

int RenderState::Attribute::_override
 

Definition at line 192 of file renderState.h.

Referenced by Attribute(), and operator=().

TypeHandle RenderState::Attribute::_type
 

Definition at line 190 of file renderState.h.

Referenced by Attribute(), RenderState::do_invert_compose(), and operator=().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:54:44 2003 for Panda by doxygen1.3