83 inline int&
x() {
return _x; }
84 inline int x()
const {
return _x; }
86 inline int&
y() {
return _y; }
87 inline int y()
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
int x() const
Definition Scissor:84
int height() const
Definition Scissor:93
int _height
Definition Scissor:104
int y() const
Definition Scissor:87
int _width
Definition Scissor:103
int & x()
Definition Scissor:83
int _x
Definition Scissor:101
int & height()
Definition Scissor:92
void setScissor(int x, int y, int width, int height)
Definition Scissor:67
int & width()
Definition Scissor:89
META_StateAttribute(osg, Scissor, SCISSOR)
int _y
Definition Scissor:102
virtual void apply(State &state) const
apply the OpenGL state attributes.
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
Return the modes associated with this StateAttribute.
Definition Scissor:61
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition Scissor:45
int & y()
Definition Scissor:86
int width() const
Definition Scissor:90
void getScissor(int &x, int &y, int &width, int &height) const
Definition Scissor:75
Scissor(const Scissor &vp, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition Scissor:35
Scissor(int x, int y, int width, int height)
Definition Scissor:27
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ SCISSOR
Definition StateAttribute:156
Definition StateAttribute:308
virtual void usesMode(GLMode mode)=0
#define OSG_EXPORT
Definition Export:39