GLBLENDCOLOR(3G)
π GLBLENDCOLOR (3G) β ok bestie, let's talk blend color β¨
So you wanna set the blend color? Say less. This is the 3G manual page for glBlendColor, and honestly she's a short one but she matters. Come sit with me π«Ά
πΈ NAME
glBlendColor β set the blend color π¨
β¨ C SPECIFICATION
Like, here's exactly how you call her, no cap:
void glBlendColor(GLfloat red, GLfloat green, GLfloat blue,
GLfloat alpha);
π PARAMETERS
red,green,blue,alphaβ these four besties specify the components ofGL_BLEND_COLORπ
π¦ DESCRIPTION
Okay so here's the tea β β GL_BLEND_COLOR may be used to calculate the source and destination blending factors. Iconic behavior, truly.
The color components are clamped to the range 0 1 before being stored. So don't try anything funny with your values, she will clamp you π
For a complete description of the blending operations, go see glBlendFunc() β she's the main character of that particular story π
And the starting point? Initially the GL_BLEND_COLOR is set to (0, 0, 0, 0). That's the default, periodt. π
π NOTES
Not me having to tell you this, but the type of the red, green, blue, and alpha parameters was changed from GLclampf to GLfloat. And before you panic β this change is transparent to user code π It's described in detail on the removedTypes() page, iykyk.
π₯ ASSOCIATED GETS
Wanna read the value back? You do it with glGet() with an argument of GL_BLEND_COLOR. That's it, that's the whole vibe check β
π VERSION SUPPORT
Okay so this is the part where the original drops a whole spreadsheet at us π β but the short version is very cute: glBlendColor is the function / feature name, and she's supported in every single OpenGL version listed. Every one. All checks. All slay. π
Here's the full list of OpenGL versions where glBlendColor gets a β:
2.0β β2.1β β3.0β β3.1β β3.2β β3.3β β4.0β β4.1β β4.2β β4.3β β4.4β β4.5β β
Twelve for twelve, she ate and left no crumbs ππ§
π SEE ALSO
Go check out her friends, they're all iconic:
glBlendEquation()glBlendFunc()glGetString()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 Β© 1991-2006 Silicon Graphics, Inc. Copyright Β© 2010-2014 Khronos Group
And that's the whole page, bestie! π«Ά This little cutie comes to you from [FIXME: source] and is dated 08/09/2021 β go forth and blend responsibly β¨ππ
π¦ 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