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

NAME

6       glGetPolygonStipple - return the polygon stipple pattern
7

C SPECIFICATION

9       void glGetPolygonStipple(GLubyte * pattern);
10

PARAMETERS

12       pattern
13           Returns the stipple pattern. The initial value is all 1's.
14

DESCRIPTION

16       glGetPolygonStipple returns to pattern a 32 × 32 polygon stipple
17       pattern. The pattern is packed into memory as if glReadPixels() with
18       both height and width of 32, type of GL_BITMAP, and format of
19       GL_COLOR_INDEX were called, and the stipple pattern were stored in an
20       internal 32 × 32 color index buffer. Unlike glReadPixels(), however,
21       pixel transfer operations (shift, offset, pixel map) are not applied to
22       the returned stipple image.
23
24       If a non-zero named buffer object is bound to the GL_PIXEL_PACK_BUFFER
25       target (see glBindBuffer()) while a polygon stipple pattern is
26       requested, pattern is treated as a byte offset into the buffer object's
27       data store.
28

NOTES

30       If an error is generated, no change is made to the contents of pattern.
31

ERRORS

33       GL_INVALID_OPERATION is generated if a non-zero buffer object name is
34       bound to the GL_PIXEL_PACK_BUFFER target and the buffer object's data
35       store is currently mapped.
36
37       GL_INVALID_OPERATION is generated if a non-zero buffer object name is
38       bound to the GL_PIXEL_PACK_BUFFER target and the data would be packed
39       to the buffer object such that the memory writes required would exceed
40       the data store size.
41
42       GL_INVALID_OPERATION is generated if glGetPolygonStipple is executed
43       between the execution of glBegin() and the corresponding execution of
44       glEnd().
45

ASSOCIATED GETS

47       glGet() with argument GL_PIXEL_PACK_BUFFER_BINDING
48

SEE ALSO

50       glPixelStore(), glPixelTransfer(), glPolygonStipple(), glReadPixels()
51
53       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
54       under the SGI Free Software B License. For details, see
55       http://oss.sgi.com/projects/FreeB/.
56

AUTHORS

58       opengl.org
59
60
61
62opengl.org                        06/10/2014           GLGETPOLYGONSTIPPLE(3G)
Impressum