15#define OSG_SHADEMODEL 1
22#ifndef OSG_GL_FIXED_FUNCTION_AVAILABLE
23 #define GL_FLAT 0x1D00
24 #define GL_SMOOTH 0x1D01
#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
#define GL_SMOOTH
Definition ShadeModel:24
#define GL_FLAT
Definition ShadeModel:23
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 getMode() const
Definition ShadeModel:63
ShadeModel(const ShadeModel &sm, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition ShadeModel:41
META_StateAttribute(osg, ShadeModel, SHADEMODEL)
Mode _mode
Definition ShadeModel:71
ShadeModel(Mode mode=SMOOTH)
virtual int compare(const StateAttribute &sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition ShadeModel:49
Mode
Definition ShadeModel:33
@ FLAT
Definition ShadeModel:34
@ SMOOTH
Definition ShadeModel:35
void setMode(Mode mode)
Definition ShadeModel:61
virtual void apply(State &state) const
apply the OpenGL state attributes.
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ SHADEMODEL
Definition StateAttribute:143
#define OSG_EXPORT
Definition Export:39