1GLSCISSOR(3G)                   [FIXME: 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
27
28       glDisable with argument GL_SCISSOR_TEST. The test is initially
29       disabled. While the test is enabled, only pixels that lie within the
30       scissor box can be modified by drawing commands. Window coordinates
31       have integer values at the shared corners of frame buffer pixels.
32       glScissor(0,0,1,1) allows modification of only the lower left pixel in
33       the window, and glScissor(0,0,0,0) doesn't allow modification of any
34       pixels in the window.
35
36       When the scissor test is disabled, it is as though the scissor box
37       includes the entire window.
38

ERRORS

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

ASSOCIATED GETS

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

VERSION SUPPORT

48       ┌──────────┬───────────────────────────────────────────────────────────────────────┐
49       │          │                OpenGL Version                                         
50       ├──────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
51Function  2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
52/         │     │     │     │     │     │     │     │     │     │     │     │     │
53Feature   │     │     │     │     │     │     │     │     │     │     │     │     │
54Name      │     │     │     │     │     │     │     │     │     │     │     │     │
55       ├──────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
56glScissor │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
57       └──────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
58

SEE ALSO

60       glEnable(), glViewport()
61
63       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014
64       Khronos Group. This document is licensed under the SGI Free Software B
65       License. For details, see http://oss.sgi.com/projects/FreeB/.
66
68       Copyright © 1991-2006 Silicon Graphics, Inc.
69       Copyright © 2010-2014 Khronos Group
70
71
72
73[FIXME: source]                   07/13/2018                     GLSCISSOR(3G)
Impressum