GLPOINTSIZE(3G)
π GLPOINTSIZE (3G) π
okay bestie, so this one's from the 3G manual section β yeah, the OpenGL one β and it's literally just about making your points bigger or smaller. one function, one float, so much slay potential. let's go β¨
π NAME π
glPointSize β specify the diameter of rasterized points
no cap, that's the whole job description. she sets the diameter, she minds her business π
πΈ C SPECIFICATION πΈ
void glPointSize(GLfloat size);
that's it. that's the girl. one GLfloat, one dream π¦
π PARAMETERS π
sizeβ specifies the diameter of rasterized points. the initial value is1. and yes, that's the starting number before you come in and start messing with it π
β¨ DESCRIPTION β¨
so, glPointSize specifies the rasterized diameter of points. like, the actual size of the little dots once they hit the screen π«
here's the tea though β it depends on point size mode, so pay attention:
- if point size mode is disabled (check out
glEnable()with parameterGL_PROGRAM_POINT_SIZE), then thissizevalue is the one that gets used to rasterize points. - otherwise β meaning the mode is enabled β the value written to the shading language built-in variable
gl_PointSizeis what gets used instead.
so like, your glPointSize call is lowkey just the backup plan in that second case. iykyk π
π¦ NOTES π¦
- the point size you specified with
glPointSizeis always returned whenGL_POINT_SIZEis queried. always. she's consistent π - clamping and rounding for points have no effect on the specified value. none. zero. the value lives exactly as you left it, periodt β¨
π₯ ERRORS π₯
GL_INVALID_VALUEis generated ifsizeis less than or equal to0. so like... don't pass zero. don't pass negative. that's the vibe check she fails π
π ASSOCIATED GETS π
glGet()with argumentGL_POINT_SIZE_RANGEglGet()with argumentGL_POINT_SIZE_GRANULARITYglGet()with argumentGL_POINT_SIZEglGet()with argumentGL_POINT_FADE_THRESHOLD_SIZEglIsEnabled()with argumentGL_PROGRAM_POINT_SIZE
all the receipts you could ever want π§Ύπ
β VERSION SUPPORT β
okay so the original had this big cute grid with Function / Feature Name down the side, OpenGL Version across the top, versions 2.0, 2.1, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5 β and glPointSize is a check mark β in every single one of them. she ate and left no crumbs π
glPointSizeβ β2.0glPointSizeβ β2.1glPointSizeβ β3.0glPointSizeβ β3.1glPointSizeβ β3.2glPointSizeβ β3.3glPointSizeβ β4.0glPointSizeβ β4.1glPointSizeβ β4.2glPointSizeβ β4.3glPointSizeβ β4.4glPointSizeβ β4.5
twelve for twelve, literally iconic π
π« SEE ALSO π«
glEnable()glPointParameter()
go read those next, bestie, they're the friend group π«Ά
π COPYRIGHT π
Copyright Β© 1991-2006 Silicon Graphics, Inc. Copyright Β© 2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
and then, because they really wanted you to remember it, here it is again:
Copyright Β© 1991-2006 Silicon Graphics, Inc. Copyright Β© 2010-2014 Khronos Group
lowkey warning bestie:sizeless than or equal to0βGL_INVALID_VALUE. no exceptions, no mercy π
okay that's the whole page, mwah π β this cutie came from [FIXME: source], stamped 08/09/2021, and yes she's still GLPOINTSIZE(3G). go forth and size those points, queen πΈππ
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms