GLGETPOLYGONSTIPPLE(3G)
β¨ GLGETPOLYGONSTIPPLE π
okay bestie, welcome to the 3G section of the manual, this one's all about glGetPolygonStipple β the lil' function that hands you back the polygon stipple pattern. no cap, that's literally its whole job. π
πΈ NAME πΈ
glGetPolygonStipple β return the polygon stipple pattern π¦
π C SPECIFICATION π
void glGetPolygonStipple( GLubyte *mask )
π PARAMETERS π
maskβ returns the stipple pattern. the initial value is all 1's, periodt. β
π DESCRIPTION π
so here's the tea: glGetPolygonStipple returns to mask a 32Γ32 polygon stipple pattern. iconic. π
the way the pattern gets packed into memory? it's as if you called glReadPixels with both height and width of 32, a type of GL_BITMAP, and a format of GL_COLOR_INDEX β and the stipple pattern was sitting in an internal 32Γ32 color index buffer the whole time. it's giving readpixels but make it stipple. β¨
but β and this is the important bit, don't skip it β unlike glReadPixels, the pixel transfer operations (shift, offset, pixel map) are not applied to the returned stipple image. so no extra glow-up on the way out. π
π«Ά NOTES π«Ά
if an error is generated, no change is made to the contents of mask. your buffer stays exactly how it was, fr fr. π
π ERRORS π
GL_INVALID_OPERATIONgets generated ifglGetPolygonStippleis executed between the execution ofglBeginand the corresponding execution ofglEnd. do not do this. it's the forbidden zone, iykyk. π
π¦ SEE ALSO π¦
glPixelStore(3G)glPixelTransfer(3G)glPolygonStipple(3G)glReadPixels(3G)
and that's the whole page, bestie!! this one came straight outta the GLGETPOLYGONSTIPPLE(3G) manual page, footer and all β same name up top, same name at the bottom. go forth and stipple responsibly πβ¨πΈ
π¦ where this page comes from
- opensuse-leap 16.0: Mesa-libGL-devel 24.1.7-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms