|
Public Member Functions |
| Scissor () |
| Scissor (int x, int y, int width, int height) |
| Scissor (const Scissor &vp, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| Copy constructor using CopyOp to manage deep vs shallow copy.
|
| META_StateAttribute (osg, Scissor, SCISSOR) |
virtual int | compare (const StateAttribute &sa) const |
| Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
|
virtual bool | getModeUsage (ModeUsage &usage) const |
| Return the modes associated with this StateAttribute.
|
void | setScissor (int x, int y, int width, int height) |
void | getScissor (int &x, int &y, int &width, int &height) const |
int & | x () |
int | x () const |
int & | y () |
int | y () const |
int & | width () |
int | width () const |
int & | height () |
int | height () const |
virtual void | apply (State &state) const |
| apply the OpenGL state attributes.
|
Protected Member Functions |
virtual | ~Scissor () |
Protected Attributes |
int | _x |
int | _y |
int | _width |
int | _height |