14#ifndef OSG_POLYGONMODE
15#define OSG_POLYGONMODE 1
20#if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) || defined(OSG_GLES3_AVAILABLE)
21 #define GL_POINT 0x1B00
22 #define GL_LINE 0x1B01
23 #define GL_FILL 0x1B02
#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
Mode _modeBack
Definition PolygonMode:84
META_StateAttribute(osg, PolygonMode, POLYGONMODE)
virtual void apply(State &state) const
apply the OpenGL state attributes.
PolygonMode(const PolygonMode &pm, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition PolygonMode:51
void setMode(Face face, Mode mode)
Mode _modeFront
Definition PolygonMode:83
Face
Definition PolygonMode:40
@ BACK
Definition PolygonMode:43
@ FRONT
Definition PolygonMode:42
@ FRONT_AND_BACK
Definition PolygonMode:41
bool getFrontAndBack() const
Definition PolygonMode:75
Mode
Definition PolygonMode:34
@ FILL
Definition PolygonMode:37
@ LINE
Definition PolygonMode:36
@ POINT
Definition PolygonMode:35
PolygonMode(Face face, Mode mode)
virtual int compare(const StateAttribute &sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition PolygonMode:59
Mode getMode(Face face) const
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ POLYGONMODE
Definition StateAttribute:127
#define OSG_EXPORT
Definition Export:39