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 (StateAttribute::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 |
osg::Scissor::Scissor | ( | ) |
osg::Scissor::Scissor | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height | |||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::Scissor::~Scissor | ( | ) | [protected, virtual] |
osg::Scissor::META_StateAttribute | ( | osg | , | |
Scissor | , | |||
SCISSOR | ||||
) |
virtual int osg::Scissor::compare | ( | const StateAttribute & | sa | ) | const [inline, virtual] |
virtual bool osg::Scissor::getModeUsage | ( | StateAttribute::ModeUsage & | ) | const [inline, virtual] |
void osg::Scissor::setScissor | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height | |||
) | [inline] |
void osg::Scissor::getScissor | ( | int & | x, | |
int & | y, | |||
int & | width, | |||
int & | height | |||
) | const [inline] |
int& osg::Scissor::x | ( | ) | [inline] |
int osg::Scissor::x | ( | ) | const [inline] |
int& osg::Scissor::y | ( | ) | [inline] |
int osg::Scissor::y | ( | ) | const [inline] |
int& osg::Scissor::width | ( | ) | [inline] |
int osg::Scissor::width | ( | ) | const [inline] |
int& osg::Scissor::height | ( | ) | [inline] |
int osg::Scissor::height | ( | ) | const [inline] |
virtual void osg::Scissor::apply | ( | State & | ) | const [virtual] |
apply the OpenGL state attributes.
The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.
Reimplemented from osg::StateAttribute.
int osg::Scissor::_x [protected] |
int osg::Scissor::_y [protected] |
int osg::Scissor::_width [protected] |
int osg::Scissor::_height [protected] |