14#ifndef OSG_ScissorIndexed
15#define OSG_ScissorIndexed 1
29 ScissorIndexed(
unsigned int index,
float x,
float y,
float width,
float height):
73 inline float getX()
const {
return _x; }
76 inline float getY()
const {
return _y; }
#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 setX(float x)
Definition ScissorIndexed:72
unsigned int _index
Definition ScissorIndexed:90
ScissorIndexed(unsigned int index, float x, float y, float width, float height)
Definition ScissorIndexed:29
void setY(float y)
Definition ScissorIndexed:75
float getWidth() const
Definition ScissorIndexed:79
void setIndex(unsigned int index)
Set the index of the ScissorIndexed.
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition ScissorIndexed:48
virtual unsigned int getMember() const
Return the buffer index as the member identifier.
Definition ScissorIndexed:64
virtual void apply(State &state) const
apply the OpenGL state attributes.
float getX() const
Definition ScissorIndexed:73
float getY() const
Definition ScissorIndexed:76
float _width
Definition ScissorIndexed:93
ScissorIndexed(const ScissorIndexed &dp, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition ScissorIndexed:37
float _x
Definition ScissorIndexed:91
float getHeight() const
Definition ScissorIndexed:82
unsigned int getIndex() const
Get the index of the ScissorIndexed.
Definition ScissorIndexed:70
float _y
Definition ScissorIndexed:92
META_StateAttribute(osg, ScissorIndexed, SCISSORINDEXED)
void setWidth(float w)
Definition ScissorIndexed:78
virtual ~ScissorIndexed()
float _height
Definition ScissorIndexed:94
void setHeight(float height)
Definition ScissorIndexed:81
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Base class for state attributes.
Definition StateAttribute:77
@ SCISSORINDEXED
Definition StateAttribute:209
#define OSG_EXPORT
Definition Export:39