GLGENTEXTURES(3G)
πΈ NAME πΈ
okay so bestie, this is glGenTextures from the GLGENTEXTURES(3G) manual page β yes, section 3G, and the header is lowkey giving [FIXME: manual] placeholder realness π
. The whole point: glGenTextures - generate texture names. Periodt. Slay. β¨
β¨ C SPECIFICATION β¨
void glGenTextures(GLsizei n, GLuint * textures);
π PARAMETERS π
nβ specifies the number of texture names to be generated. It's the "how many, bestie" number.texturesβ specifies an array in which the generated texture names are stored. This is where the generated names get dropped. π«Ά
π¦ DESCRIPTION π¦
okay so glGenTextures gives you n texture names in textures. Big vibe check: there is no guarantee that the names form a contiguous set of integers β they don't have to be a cute little 1, 2, 3, 4 run. But it is guaranteed that none of the returned names was in use immediately before the call to glGenTextures. No cap, that part is stated. π₯
Generated textures start with no dimensionality. They assume the dimensionality of the texture target to which they are first bound (see glBindTexture()). It's giving "I'll figure out my whole personality after you bind me" energy π.
Texture names returned by a call to glGenTextures are not returned by subsequent calls, unless they are first deleted with glDeleteTextures(). So don't expect the same names to come back later β they're literally taken until you delete them. π
π ERRORS π
GL_INVALID_VALUEis generated ifnis negative. That's the only error listed, bestie β negativenfails the vibe check, fr fr. π
π ASSOCIATED GETS π
glIsTexture()β iykyk, that's the associated get.
π VERSION SUPPORT π
Version vibe check, bestie: the function/feature name is glGenTextures, and it is supported in every OpenGL version listed here. All the checkmarks ate, no skips β highkey iconic. β¨
glGenTexturesβ OpenGL2.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 π
glBindTexture()glCopyTexImage1D()glCopyTexImage2D()glDeleteTextures()glGet()glGetTexParameter()glTexImage1D()glTexImage2D()glTexImage3D()glTexParameter()
π 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, bestie)
Copyright Β© 1991-2006 Silicon Graphics, Inc.
Copyright Β© 2010-2014 Khronos Group
okay that's the whole page! final sign-off vibes: source/version [FIXME: source], date 08/09/2021, title GLGENTEXTURES(3G) β ngl, mwah πβ¨
π¦ 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