GLPIXELZOOM(3G)
π NAME π
glPixelZoom β bestie, this is the one that sets your pixel zoom factors β¨ like it literally just says "specify the pixel zoom factors" and that's the whole vibe π
This lil guy lives in the 3G manual, and its name up top is GLPIXELZOOM, lowercase in code, all caps in the header, iykyk π
πΈ C SPECIFICATION πΈ
void glPixelZoom( GLfloat xfactor,
GLfloat yfactor )
no cap, that's the whole signature π«Ά
β¨ PARAMETERS β¨
xfactor,yfactorβ these two cuties specify the x and y zoom factors for pixel write operations. so like, how much you're stretching the pixels when you write them. that's it, that's the job π
π¦ DESCRIPTION π¦
okay so glPixelZoom specifies values for the x and y zoom factors. simple.
now here's the part that's giving main character energy. during the execution of glDrawPixels or glCopyPixels, if (xr, yr) is the current raster position, and a given element is in the *m*th row and *n*th column of the pixel rectangle, then pixels whose centers are in the rectangle with corners at
(xr+nβ
xfactor, yr+mβ
yfactor)
(xr+(n+1)β
xfactor, yr+(m+1)β
yfactor)
are candidates for replacement. π« and like, any pixel whose center lies on the bottom or left edge of this rectangular region is also modified. yes, even the edge ones. they're included, periodt.
and listen β pixel zoom factors are not limited to positive values. negative zoom factors reflect the resulting image about the current raster position. so you can absolutely flip the whole thing, it's iconic, it's art π
π ERRORS π
GL_INVALID_OPERATIONis generated ifglPixelZoomis executed between the execution ofglBeginand the corresponding execution ofglEnd. π so do NOT try to sneak it in there, bestie, it will not slay, it will error out on you.
π ASSOCIATED GETS π
you can peek at these values with:
glGetwith argumentGL_ZOOM_XglGetwith argumentGL_ZOOM_Y
π SEE ALSO π
glCopyPixels(3G)glDrawPixels(3G)
and that's the whole page fr fr π this was GLPIXELZOOM from the 3G manual β same name top and bottom, GLPIXELZOOM(3G), living rent free in your terminal forever πβ¨π«Ά no date drama, just the page name and the manual section, and honestly? iconic. bye bestie ππ
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms