GLCLEARCOLOR(3G)
NAME π
Okay so this is glClearColor, straight from the 3G manual, and she is here to specify the clear values for your color buffers. Slay.
C SPECIFICATION β¨
The C signature is literally this, bestie β copy it exactly:
void glClearColor( GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha )
PARAMETERS π
red,green,blue,alphaβ these specify the red, green, blue, and alpha values used when the color buffers are cleared. The initial values are all0.
DESCRIPTION π¦
glClearColor specifies the red, green, blue, and alpha values that glClear uses to clear the color buffers. The way that works is simple: you pick the values, and glClear does the clearing with them.
Any values you specify with glClearColor get clamped to the range [0, 1]. Periodt.
No cap: if you pass something outside that range, itβs getting clamped, not kept as-is. π
ERRORS π¨
GL_INVALID_OPERATION is generated if glClearColor is executed between the execution of glBegin and the corresponding execution of glEnd.
Bestie, do not call this inside aglBegin/glEndblock. That is giving βerror message incomingβ energy. π
ASSOCIATED GETS π
You can ask for it back with glGet using the argument GL_COLOR_CLEAR_VALUE.
SEE ALSO π
glClear(3G)β the iconique bestie that actually clears using the values you set here.
Thatβs the whole page, bestie π β the footer is just the GLCLEARCOLOR(3G) manual tag, with no extra source/version or date info beyond that. π«Ά
π¦ 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-1017 on : a language model's rewrite of the original, under its terms