|
NAMEglLineStipple - specify the line stipple patternC SPECIFICATIONvoid glLineStipple( GLint factor,GLushort pattern ) PARAMETERS
DESCRIPTIONLine stippling masks out certain fragments produced by rasterization; those fragments will not be drawn. The masking is achieved by using three parameters: the 16-bit line stipple pattern pattern, the repeat count factor, and an integer stipple counter .Counter is reset to 0 whenever glBegin is called, and before each line segment of a glBegin(GL_LINES)/glEnd sequence is generated. It is incremented after each fragment of a unit width aliased line segment is generated, or after each fragments of an width line segment are generated. The fragments associated with count are masked out if
is 0, otherwise these fragments are sent to the frame buffer. Bit zero of pattern is the least significant bit. Antialiased lines are treated as a sequence of rectangles for purposes of stippling. Whether rectagle is rasterized or not depends on the fragment rule described for aliased lines, counting rectangles rather than groups of fragments. To enable and disable line stippling, call glEnable and glDisable with argument GL_LINE_STIPPLE. When enabled, the line stipple pattern is applied as described above. When disabled, it is as if the pattern were all 1's. Initially, line stippling is disabled. ERRORSGL_INVALID_OPERATION is generated if glLineStipple is executed between the execution of glBegin and the corresponding execution of glEnd.ASSOCIATED GETSglGet with argument GL_LINE_STIPPLE_PATTERNglGet with argument GL_LINE_STIPPLE_REPEAT glIsEnabled with argument GL_LINE_STIPPLE SEE ALSOglLineWidth, glPolygonStipple Visit the GSP FreeBSD Man Page Interface. |