14 #ifndef OSG_POLYGONMODE
15 #define OSG_POLYGONMODE 1
17 #include <osg/StateAttribute>
20 #if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE)
21 #define GL_POINT 0x1B00
22 #define GL_LINE 0x1B01
23 #define GL_FILL 0x1B02
53 _modeFront(pm._modeFront),
54 _modeBack(pm._modeBack) {}
72 void setMode(Face face,Mode mode);
73 Mode getMode(Face face)
const;
77 virtual void apply(
State& state)
const;
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
PolygonMode(const PolygonMode &pm, const CopyOp ©op=CopyOp::SHALLOW_COPY)
bool getFrontAndBack() const
#define META_StateAttribute(library, name, type)
virtual int compare(const StateAttribute &sa) const
#define COMPARE_StateAttribute_Parameter(parameter)