[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

glGetPolygonStipple Subroutine

Purpose

Returns the polygon stipple pattern.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glGetPolygonStipple(GLubyte *Mask)

Parameters

Mask Returns the stipple pattern.

Description

The glGetPolygonStipple subroutine returns to Mask a 32 x 32 polygon stipple pattern. The pattern is packed into memory as if the following values were called:

In addition, the pattern is packed into memory as if the stipple pattern was stored in an internal 32 x 32 color index buffer. Unlike glReadPixels, however, pixel transfer operations (shift, offset, pixel map) are not applied to the returned stipple image.

Notes

If an error is generated, no change is made to the contents of the Mask parameter.

Errors

GL_INVALID_OPERATION The glGetPolygonStipple subroutine is called between a call to glBegin and the corresponding call to glEnd.

Files

/usr/include/GL/gl.h Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glBegin or glEnd subroutine, glPixelStore subroutine, glPixelTransfer subroutine, glPolygonStipple subroutine, glReadPixels subroutine.

OpenGL Overview.


[ Previous | Next | Contents | Glossary | Home | Search ]