GLDELETELISTS(3G)

πŸ“¦ version 24.3.3, in opensuse-leap 16.0

✨ GLDELETELISTS ✨

okay bestie, welcome to glDeleteLists β€” that's the 3G manual page, GL family, the one that does the deleting πŸ’…. Yeah. She's the cleanup crew. Let's get into it πŸŽ€


πŸ’– NAME πŸ’–

glDeleteLists β€” delete a contiguous group of display lists πŸ—‘οΈβœ¨

No cap, that's the whole job. She deletes. She frees. She moves on.


🌸 C SPECIFICATION 🌸

void glDeleteLists( GLuint list,
                    GLsizei range )

that's it. two args. she's lowkey minimal about it 😌


πŸ¦‹ PARAMETERS πŸ¦‹

  • list β€” the integer name of the first display list you wanna delete. like, the first one. the starting point. the main character of the range πŸ‘‘
  • range β€” how many display lists to delete. the headcount. the vibes span πŸ’€

🌈 DESCRIPTION 🌈

so here's the tea β˜• glDeleteLists causes a contiguous group of display lists to be deleted. list is the name of the first display list to be deleted, and range is the number of display lists to delete. and every single display list d where

list ≀ d ≀ list + range - 1

gets deleted. all of them. the whole squad. gone 🫢

all storage locations allocated to the specified display lists are freed, and the names are available for reuse at a later time β€” so it's not a forever goodbye, it's more like a "you can come back later" energy β™»οΈβœ¨

and here's the part where she's chill: names within the range that do not have an associated display list are just ignored. she's not gonna yell at you about it. she's not gonna error out. she just moves on 😌

and if range is 0? nothing happens. literally nothing. zero. nada. a whole lot of nothing πŸ’€


πŸ”₯ ERRORS πŸ”₯

  • GL_INVALID_VALUE is generated if range is negative. so like... don't do that πŸ™ˆ negative range is not the vibe, she will call you out.
  • GL_INVALID_OPERATION is generated if glDeleteLists is executed between the execution of glBegin and the corresponding execution of glEnd. read that again, bestie β€” do not delete lists in the middle of a glBegin/glEnd sandwich. that's forbidden. she said no πŸš«πŸ‘‘
fr fr, those two errors are not a drill. range < 0 = invalid value, and deleting between glBegin and glEnd = invalid operation. periodt.

πŸ’œ SEE ALSO πŸ’œ

  • glCallList(3G)
  • glCallLists(3G)
  • glGenLists(3G)
  • glIsList(3G)
  • glNewList(3G)

go read those too, they're all part of the display list friend group πŸ«‚


okay that's the page!! this was GLDELETELISTS(3G) from the 3G manual set, and yeah she's still signing off as GLDELETELISTS(3G) down at the bottom like always πŸŽ€ thank u for reading my little Unix rant, you ate that πŸ’…βœ¨

πŸ“¦ where this page comes from