GLGENLISTS(3G)
β¨ GLGENLISTS β bestie, let's make a whole squad of display lists π
okay so this is the 3G manual page, and we're talking about glGenLists from OpenGL. Sit down, hydrate, we're doing graphics π«Ά
πΈ NAME πΈ
glGenLists β generate a contiguous set of empty display lists β¨
(it's giving "reserve me a block of names, I'm about to fill them with art")
π C SPECIFICATION π
GLuint glGenLists( GLsizei range )
look at that signature. one argument. one return value. minimalism, we love her π
π PARAMETERS π
rangeβ the number of contiguous empty display lists you want generated. like, "gimme this many, and gimme them all lined up next to each other" π¦
π DESCRIPTION π
okay so glGenLists has exactly one argument, and that's range. she returns an integer n such that range contiguous empty display lists β named n, n+1, ..., n+range -1 β get created. a little squad. a whole lineup. iconic behavior, no cap π
but here's the tea β β and listen closely because this part matters:
if range is 0, or if there's no group of range contiguous names available, or if any error gets generated, then no display lists are generated at all, and 0 is returned. that's the vibe check failing. nothing for you. go home π
π ERRORS π
GL_INVALID_VALUEis generated ifrangeis negative. bestie. bestie why would you do that. negative range is not a thing. πGL_INVALID_OPERATIONis generated ifglGenListsis executed between the execution ofglBeginand the corresponding execution ofglEnd. so like, don't try to generate lists while you're mid-drawing. that's the forbidden window. do not π«
π₯ ASSOCIATED GETS π₯
glIsList
(the little check-in function. "hey, are you a list? do you exist?" so cute) π₯Ί
π SEE ALSO π
glCallList(3G)glCallLists(3G)glDeleteLists(3G)glNewList(3G)
go read those too, they're all in the same friend group π
and that's the whole page, bestie β¨ the header up top said GLGENLISTS(3G) and the footer said GLGENLISTS(3G) again β it's from the 3G manual, the OpenGL one, and there's no extra date or version stamped on it, so that's just... the whole thing. short, sweet, and honestly a little mysterious π go make some display lists. slay π
π¦ where this page comes from
- opensuse-leap 16.0: Mesa-libGL-devel 24.1.7-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms