在OpenGL中,裁剪用到glScissor:
[cpp]
view plaincopy
void glScissor(
GLint x,
GLint y,
GLsizei width,
GLsizei height
);
[cpp]
view plaincopy
Parameters
x, y
The lower-left corner of the scissor box. Initially (0,0).
width, height
The width and height of the scissor box. When an OpenGL context is first attached to a window, width and height are set to the dimensions of that window.
Remarks
The glScissor function defines a rectangle, called the sc......
阅读全文