14#ifndef OSG_LINESTIPPLE
15#define OSG_LINESTIPPLE 1
19#ifndef GL_LINE_STIPPLE
20 #define GL_LINE_STIPPLE 0x0B24
#define GL_LINE_STIPPLE
Definition LineStipple:20
#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
GLushort _pattern
Definition LineStipple:77
GLint getFactor() const
Definition LineStipple:64
GLint _factor
Definition LineStipple:76
LineStipple(const LineStipple &lw, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition LineStipple:36
virtual void apply(State &state) const
apply the OpenGL state attributes.
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
Return the modes associated with this StateAttribute.
Definition LineStipple:57
void setPattern(GLushort pattern)
virtual int compare(const StateAttribute &sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition LineStipple:44
GLushort getPattern() const
Definition LineStipple:67
LineStipple(GLint factor, GLushort pattern)
Definition LineStipple:31
void setFactor(GLint factor)
META_StateAttribute(osg, LineStipple, LINESTIPPLE)
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ LINESTIPPLE
Definition StateAttribute:141
Definition StateAttribute:308
virtual void usesMode(GLMode mode)=0
#define OSG_EXPORT
Definition Export:39