32 #ifndef Scissor_INCLUDE_ONCE 33 #define Scissor_INCLUDE_ONCE 54 Scissor(
int x,
int y,
int width,
int height)
64 glEnable(GL_SCISSOR_TEST);
75 glDisable(GL_SCISSOR_TEST);
void disable()
Disables the scissor test.
The RectI class represents a 2D rectangular area using int precision.
const RectI & scissorRect() const
Returns the scissor box.
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Visualization Library main namespace.
The base class for all the reference counted objects.
Implements the viewport and clearing settings associated to a Camera.
Rect intersected(const Rect &other) const
Scissor(int x, int y, int width, int height)
bool operator<(const Scissor &other) const
Defines a sort of lexicographic sorting that make possible the use of the Scissor class with STL cont...
The Scissor class wraps the OpenGL function glScissor(), see http://www.opengl.org/sdk/docs/man/xhtml...
void enable(const Viewport *viewport) const
Enables the scissor test on the area specified by scissorRect() clipped against the given Viewport...
RectI rect() const
Returns the rectangular area that defines the viewport computed as RectI(x(), y(), x()+width()-1, y()+height()-1).
void setScissor(int x, int y, int width, int height)
Defines the scissor box.
void setScissor(const RectI &scissor)
Defines the scissor box.