28 _mode(GL_DONT_CARE) {}
30 Hint(GLenum target, GLenum mode):
44 virtual const char*
className()
const {
return "Hint"; }
#define COMPARE_StateAttribute_Parameter(parameter)
COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(....
Definition StateAttribute:69
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
COMPARE_StateAttribute_Types macro is a helper for implementing the StateAtribute::compare(....
Definition StateAttribute:57
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
void setTarget(GLenum target)
virtual const char * className() const
Return the name of the attribute's class type.
Definition Hint:44
Hint(const Hint &hint, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition Hint:35
virtual unsigned int getMember() const
Return the member identifier within the attribute's class type.
Definition Hint:61
GLenum getMode() const
Definition Hint:67
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition Hint:47
GLenum getTarget() const
Definition Hint:64
GLenum _target
Definition Hint:74
Hint(GLenum target, GLenum mode)
Definition Hint:30
virtual bool isSameKindAs(const osg::Object *obj) const
Return true if this and obj are of the same kind of object.
Definition Hint:42
GLenum _mode
Definition Hint:75
void setMode(GLenum mode)
Definition Hint:66
virtual void apply(State &state) const
apply the OpenGL state attributes.
virtual osg::Object * clone(const osg::CopyOp ©op) const
Clone an attribute, with Object* return type.
Definition Hint:41
virtual osg::Object * cloneType() const
Clone the type of an attribute, with Object* return type.
Definition Hint:40
virtual const char * libraryName() const
Return the name of the attribute's library.
Definition Hint:43
virtual Type getType() const
Return the Type identifier of the attribute's class type.
Definition Hint:45
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Type
Type identifier to differentiate between different state types.
Definition StateAttribute:124
@ HINT
Definition StateAttribute:166
#define NULL
Definition Export:55
#define OSG_EXPORT
Definition Export:39