15#define OSG_LIGHTMODEL 1
#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
Vec4f Vec4
Definition Vec4:21
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
void setTwoSided(bool twoSided)
Definition LightModel:74
void setColorControl(ColorControl cc)
Definition LightModel:66
bool _twoSided
Definition LightModel:89
virtual void apply(State &state) const
apply the OpenGL state attributes.
void setAmbientIntensity(const osg::Vec4 &ambient)
Definition LightModel:56
void setLocalViewer(bool localViewer)
Definition LightModel:70
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition LightModel:40
bool _localViewer
Definition LightModel:88
META_StateAttribute(osg, LightModel, LIGHTMODEL)
LightModel(const LightModel &lw, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition LightModel:29
ColorControl _colorControl
Definition LightModel:87
ColorControl
Definition LightModel:61
@ SEPARATE_SPECULAR_COLOR
Definition LightModel:62
@ SINGLE_COLOR
Definition LightModel:63
bool getTwoSided() const
Definition LightModel:75
bool getLocalViewer() const
Definition LightModel:71
const osg::Vec4 & getAmbientIntensity() const
Definition LightModel:57
osg::Vec4 _ambient
Definition LightModel:86
ColorControl getColorControl() const
Definition LightModel:67
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ LIGHTMODEL
Definition StateAttribute:148
#define OSG_EXPORT
Definition Export:39