1GLSCISSOR(3G)                    OpenGL Manual                   GLSCISSOR(3G)
2
3
4

NAME

6       glScissor - define the scissor box
7

C SPECIFICATION

9       void glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
10

PARAMETERS

12       x, y
13           Specify the lower left corner of the scissor box. Initially (0, 0).
14
15       width, height
16           Specify the width and height of the scissor box. When a GL context
17           is first attached to a window, width and height are set to the
18           dimensions of that window.
19

DESCRIPTION

21       glScissor defines a rectangle, called the scissor box, in window
22       coordinates. The first two arguments, x and y, specify the lower left
23       corner of the box.  width and height specify the width and height of
24       the box.
25
26       To enable and disable the scissor test, call glEnable() and glDisable()
27       with argument GL_SCISSOR_TEST. The test is initially disabled. While
28       the test is enabled, only pixels that lie within the scissor box can be
29       modified by drawing commands. Window coordinates have integer values at
30       the shared corners of frame buffer pixels.  glScissor(0,0,1,1) allows
31       modification of only the lower left pixel in the window, and
32       glScissor(0,0,0,0) doesn't allow modification of any pixels in the
33       window.
34
35       When the scissor test is disabled, it is as though the scissor box
36       includes the entire window.
37

ERRORS

39       GL_INVALID_VALUE is generated if either width or height is negative.
40

ASSOCIATED GETS

42       glGet() with argument GL_SCISSOR_BOX
43
44       glIsEnabled() with argument GL_SCISSOR_TEST
45

SEE ALSO

47       glEnable(), glViewport()
48
50       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
51       under the SGI Free Software B License. For details, see
52       http://oss.sgi.com/projects/FreeB/.
53

AUTHORS

55       opengl.org
56
57
58
59opengl.org                        06/10/2014                     GLSCISSOR(3G)
Impressum