GLDELETETEXTURES(3G)

πŸ’… GLDELETETEXTURES (3G) πŸ’…

okay bestie, welcome to the 3G manual page for glDeleteTextures β€” yes that's the manual name, and yes she's iconic. buckle up, this one's short and sweet and honestly a little unhinged (affectionate). πŸŽ€

✨ NAME ✨

glDeleteTextures β€” delete named textures. that's it. that's the whole job. girlboss behavior fr fr. πŸ—‘οΈ

🌸 C SPECIFICATION 🌸

void glDeleteTextures(GLsizei n, const GLuint * textures);

look at her. two params, zero drama. πŸ’–

πŸŽ€ PARAMETERS πŸŽ€

  • n β€” the number of textures you want to delete. how many we yeeting. count them.
  • textures β€” an array of textures to be deleted. the actual list of victims πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so glDeleteTextures deletes n textures named by the elements of the array textures. the way that it goes through your whole list and just… deletes them. no cap. 🫢

after a texture is deleted, it has no contents or dimensionality β€” like genuinely empty, she's giving void, she's giving nothing left β€” and its name is free for reuse (for example by glGenTextures()). recycling era! ♻️

and here's the tea πŸ‘‘: if a texture that is currently bound is deleted, the binding reverts to 0 (the default texture). so you're never left hanging with a ghost binding. she's clean like that.

also, glDeleteTextures silently ignores 0's and names that do not correspond to existing textures. silent. like she saw nothing, she heard nothing, she is not getting involved πŸ™ˆ. no error, no fuss.

πŸ’€ ERRORS πŸ’€

  • GL_INVALID_VALUE is generated if n is negative. bestie you can't delete a negative number of textures, that's not a thing, she WILL call you out 😭

⭐ ASSOCIATED GETS ⭐

  • glIsTexture()

the vibe check function. use her to check if a name is still a texture. iykyk πŸ’…

🌈 VERSION SUPPORT 🌈

here's the whole grid, faithfully preserved, no details dropped:

  • Feature name: glDeleteTextures
  • OpenGL 2.0 β€” βœ”
  • OpenGL 2.1 β€” βœ”
  • OpenGL 3.0 β€” βœ”
  • OpenGL 3.1 β€” βœ”
  • OpenGL 3.2 β€” βœ”
  • OpenGL 3.3 β€” βœ”
  • OpenGL 4.0 β€” βœ”
  • OpenGL 4.1 β€” βœ”
  • OpenGL 4.2 β€” βœ”
  • OpenGL 4.3 β€” βœ”
  • OpenGL 4.4 β€” βœ”
  • OpenGL 4.5 β€” βœ”

every single one. she ate and left absolutely no crumbs πŸ”₯πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

  • glBindTexture()
  • glCopyTexImage1D()
  • glCopyTexImage2D()
  • glGenTextures()
  • glGet()
  • glGetTexParameter()
  • glTexImage1D()
  • glTexImage2D()
  • glTexParameter()

the whole friend group. go say hi. 🌸

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 page!! 🌈✨ shoutout to [FIXME: source] (yes the source field literally says FIXME, we love an unfinished queen πŸŽ€), dated 08/09/2021, and we're out here repping GLDELETETEXTURES(3G) β€” mwah, stay hydrated, bind responsibly, bye bestie πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from