GLCLEARCOLOR(3G)
πΈ NAME πΈ
okay so this page is glClearColor, manual section 3G β and the headerβs manual slot is literally [FIXME: manual], iconic in a cursed way π.
glClearColorβ specify clear values for the color buffers. Thatβs the whole name-line vibe, bestie.
π» C SPECIFICATION π»
Hereβs the signature, exactly as it appears, no edits, no βimprovementsβ:
void glClearColor(GLfloat red, GLfloat green, GLfloat blue,
GLfloat alpha);
π PARAMETERS π
red,green,blue,alphaβ the red, green, blue, and alpha values used when the color buffers get cleared. Their initial values are all0. Yes, all four start at zero, cute.
β¨ DESCRIPTION β¨
glClearColor says βthese are the red, green, blue, and alpha valuesβ and glClear() uses them to clear the color buffers. The values you specify get clamped to the range 0 1 β so if you try to be extra, the clamp says βno maβamβ π
.
π§ NOTES π§
Plot twist: the types of red, green, blue, and alpha changed from GLclampf to GLfloat. This change is transparent to user code, and itβs described in detail on the removedTypes() page. So your code doesnβt need to panic, fr fr π«Ά.
π ASSOCIATED GETS π
glGet()with argumentGL_COLOR_CLEAR_VALUEβ thatβs the associated get, periodt.
π VERSION SUPPORT π
The tableβs column is OpenGL Version, its row label is Function / Feature Name, and the row is glClearColor. Every listed version is a checkmark:
- OpenGL
2.0:β 2.1:β3.0:β3.1:β3.2:β3.3:β4.0:β4.1:β4.2:β4.3:β4.4:β4.5:β
So likeβ¦ all the checks. Slay. π₯
π SEE ALSO π
glClear()removedTypes()
Β© 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/.
Β© COPYRIGHT (again, yes really) Β©
Copyright Β© 1991-2006 Silicon Graphics, Inc. Copyright Β© 2010-2014 Khronos Group
okay bye bestie π Source/version footer says [FIXME: source] / GLCLEARCOLOR(3G), and the date stamp is 08/09/2021. Catch you in the next draw call πβ¨
π¦ 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