osg::Hint Class Reference

Inheritance diagram for osg::Hint:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Hint ()
 Hint (GLenum target, GLenum mode)
 Hint (const Hint &hint, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_StateAttribute (osg, Hint, HINT)
virtual int compare (const StateAttribute &sa) const
 Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
virtual unsigned int getMember () const
 Return the member identifier within the attribute's class type.
void setTarget (GLenum target)
GLenum getTarget () const
void setMode (GLenum mode)
GLenum getMode () const
virtual void apply (State &state) const
 apply the OpenGL state attributes.

Protected Attributes

GLenum _target
GLenum _mode


Constructor & Destructor Documentation

osg::Hint::Hint (  )  [inline]

osg::Hint::Hint ( GLenum  target,
GLenum  mode 
) [inline]

osg::Hint::Hint ( const Hint hint,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
) [inline]

Copy constructor using CopyOp to manage deep vs shallow copy.


Member Function Documentation

osg::Hint::META_StateAttribute ( osg  ,
Hint  ,
HINT   
)

virtual int osg::Hint::compare ( const StateAttribute sa  )  const [inline, virtual]

Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Implements osg::StateAttribute.

virtual unsigned int osg::Hint::getMember (  )  const [inline, virtual]

Return the member identifier within the attribute's class type.

Used for light number/clip plane number etc.

Reimplemented from osg::StateAttribute.

void osg::Hint::setTarget ( GLenum  target  )  [inline]

GLenum osg::Hint::getTarget (  )  const [inline]

void osg::Hint::setMode ( GLenum  mode  )  [inline]

GLenum osg::Hint::getMode (  )  const [inline]

virtual void osg::Hint::apply ( State  )  const [virtual]

apply the OpenGL state attributes.

The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.

Reimplemented from osg::StateAttribute.


Member Data Documentation

GLenum osg::Hint::_target [protected]

GLenum osg::Hint::_mode [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:10 2007 for the OpenSceneGraph by doxygen 1.5.3.