GLGETSTRING(3G)
okay so bestie, welcome to the 3G manual page for glGetString β the source header is marked [FIXME: manual], and we are keeping that little detail, no cap. This is the whole βtell me about the current GL connectionβ situation, and it eats. π
β¨ NAME β¨
glGetString β return a string describing the current GL connection. Thatβs the vibe. π«Ά
π» C SPECIFICATION π»
const GLubyte *glGetString(GLenum name);
const GLubyte *glGetStringi(GLenum name, GLuint index);
π PARAMETERS π
nameβ specifies a symbolic constant, one ofGL_VENDOR,GL_RENDERER,GL_VERSION, orGL_SHADING_LANGUAGE_VERSION. Additionally,glGetStringiaccepts theGL_EXTENSIONStoken.indexβ forglGetStringi, specifies the index of the string to return.
π¦ DESCRIPTION π¦
glGetString returns a pointer to a static string describing some aspect of the current GL connection. The name can be one of these iconic options:
GL_VENDORβ returns the company responsible for this GL implementation. This name does not change from release to release.GL_RENDERERβ returns the name of the renderer. This name is typically specific to a particular configuration of a hardware platform. It does not change from release to release.GL_VERSIONβ returns a version or release number.GL_SHADING_LANGUAGE_VERSIONβ returns a version or release number for the shading language.
glGetStringi returns a pointer to a static string indexed by index. The name can be one of these:
GL_EXTENSIONSβ forglGetStringionly, returns the extension string supported by the implementation atindex.
Strings GL_VENDOR and GL_RENDERER together uniquely specify a platform. They do not change from release to release and should be used by platform-recognition algorithms. π
The GL_VERSION and GL_SHADING_LANGUAGE_VERSION strings begin with a version number. The version number uses one of these forms:
major_number.minor_number major_number.minor_number.release_number
Vendor-specific information may follow the version number. Its format depends on the implementation, but a space always separates the version number and the vendor-specific information.
All strings are null-terminated. periodt. π
πΈ NOTES πΈ
If an error is generated, glGetString returns 0.
The client and server may support different versions. glGetString always returns a compatible version number. The release number always describes the server.
π¨ ERRORS π¨
GL_INVALID_ENUMis generated ifnameis not an accepted value.GL_INVALID_VALUEis generated byglGetStringiifindexis outside the valid range for indexed state name.
bestie, if you see these, itβs giving βnot the accepted valueβ energy π
π VERSION SUPPORT π
The source table has columns Function / Feature Name and OpenGL Version, and hereβs every single value kept in bullet form because tables are not the vibe here but the facts absolutely are:
glGetStringβ2.0β,2.1β,3.0β,3.1β,3.2β,3.3β,4.0β,4.1β,4.2β,4.3β,4.4β,4.5βglGetStringiβ2.0-,2.1-,3.0β,3.1β,3.2β,3.3β,4.0β,4.1β,4.2β,4.3β,4.4β,4.5β
π¦ SEE ALSO π¦
so this section is literally empty in the source β no entries to list, just vibes. π«Ά
π 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 π
yes, the source has this section twice, and we are keeping both, because every detail matters:
Copyright Β© 1991-2006 Silicon Graphics, Inc.
Copyright Β© 2010-2014 Khronos Group
mwah π this iconic page is stamped [FIXME: source], dated 08/09/2021, and filed under GLGETSTRING(3G) β slay and goodbye. π
π¦ 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