Public Member Functions | |
Hint () | |
Hint (GLenum target, GLenum mode) | |
Hint (const Hint &hint, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual osg::Object * | cloneType () const |
virtual osg::Object * | clone (const osg::CopyOp ©op) const |
virtual bool | isSameKindAs (const osg::Object *obj) const |
virtual const char * | libraryName () const |
virtual const char * | className () const |
virtual Type | getType () const |
virtual int | compare (const StateAttribute &sa) const |
virtual unsigned int | getMember () const |
void | setTarget (GLenum target) |
GLenum | getTarget () const |
void | setMode (GLenum mode) |
GLenum | getMode () const |
virtual void | apply (State &state) const |
Protected Attributes | |
GLenum | _target |
GLenum | _mode |
osg::Hint::Hint | ( | ) | [inline] |
osg::Hint::Hint | ( | GLenum | target, | |
GLenum | mode | |||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
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.
virtual const char* osg::Hint::className | ( | ) | const [inline, virtual] |
Return the name of the attribute's class type.
Reimplemented from osg::StateAttribute.
virtual osg::Object* osg::Hint::clone | ( | const osg::CopyOp & | ) | const [inline, virtual] |
Clone an attribute, with Object* return type. Must be defined by derived classes.
Implements osg::StateAttribute.
virtual osg::Object* osg::Hint::cloneType | ( | ) | const [inline, virtual] |
Clone the type of an attribute, with Object* return type. Must be defined by derived classes.
Implements osg::StateAttribute.
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.
References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.
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.
GLenum osg::Hint::getMode | ( | ) | const [inline] |
GLenum osg::Hint::getTarget | ( | ) | const [inline] |
virtual Type osg::Hint::getType | ( | ) | const [inline, virtual] |
Return the Type identifier of the attribute's class type.
Implements osg::StateAttribute.
virtual bool osg::Hint::isSameKindAs | ( | const osg::Object * | obj | ) | const [inline, virtual] |
Return true if this and obj are of the same kind of object.
Reimplemented from osg::StateAttribute.
References NULL.
virtual const char* osg::Hint::libraryName | ( | ) | const [inline, virtual] |
Return the name of the attribute's library.
Reimplemented from osg::StateAttribute.
void osg::Hint::setMode | ( | GLenum | mode | ) | [inline] |
void osg::Hint::setTarget | ( | GLenum | target | ) |
GLenum osg::Hint::_mode [protected] |
GLenum osg::Hint::_target [protected] |