15#define OSG_LINEWIDTH 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
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 setWidth(float width)
virtual void apply(State &state) const
apply the OpenGL state attributes.
LineWidth(const LineWidth &lw, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition LineWidth:29
META_StateAttribute(osg, LineWidth, LINEWIDTH)
float _width
Definition LineWidth:58
float getWidth() const
Definition LineWidth:50
LineWidth(float width=1.0f)
virtual int compare(const StateAttribute &sa) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition LineWidth:36
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ LINEWIDTH
Definition StateAttribute:140
#define OSG_EXPORT
Definition Export:39