15#ifndef OSG_POLYGONSTIPPLE
16#define OSG_POLYGONSTIPPLE 1
20#ifndef GL_POLYGON_STIPPLE
21 #define GL_POLYGON_STIPPLE 0x0B42
#define GL_POLYGON_STIPPLE
Definition PolygonStipple:21
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
META_StateAttribute(osg, PolygonStipple, POLYGONSTIPPLE)
virtual void apply(State &state) const
apply the OpenGL state attributes.
PolygonStipple(const PolygonStipple &lw, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
void setMask(const GLubyte *mask)
set the mask up, copying 128 bytes (32x32 bitfield) from mask into the local _mask.
virtual int compare(const StateAttribute &sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
PolygonStipple(const GLubyte *mask)
GLubyte _mask[128]
Definition PolygonStipple:62
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
Return the modes associated with this StateAttribute.
Definition PolygonStipple:43
virtual ~PolygonStipple()
const GLubyte * getMask() const
get a pointer to the mask.
Definition PolygonStipple:53
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ POLYGONSTIPPLE
Definition StateAttribute:142
Definition StateAttribute:308
virtual void usesMode(GLMode mode)=0
#define OSG_EXPORT
Definition Export:39