15#define OSG_BLENDCOLOR 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
const osg::Vec4 & getConstantColor() const
Definition BlendColor:64
BlendColor(const BlendColor &trans, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition BlendColor:35
osg::Vec4 _constantColor
Definition BlendColor:72
virtual void apply(State &state) const
apply the OpenGL state attributes.
META_StateAttribute(osg, BlendColor, BLENDCOLOR)
BlendColor(const osg::Vec4 &constantColor)
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition BlendColor:42
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
Return the modes associated with this StateAttribute.
Definition BlendColor:54
osg::Vec4 & getConstantColor()
Definition BlendColor:62
void setConstantColor(const osg::Vec4 &color)
Definition BlendColor:60
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
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ BLENDCOLOR
Definition StateAttribute:157
Definition StateAttribute:308
virtual void usesMode(GLMode mode)=0
#define OSG_EXPORT
Definition Export:39