GLLISTBASE(3G)

๐Ÿ“ฆ version 24.3.3, in opensuse-leap 16.0

๐Ÿ’– GLLISTBASE โ€” bestie, it's in the 3G manual ๐Ÿ’–

okay so welcome to glListBase (yes, that's GLLISTBASE(3G), the OpenGL one, not to be confused with anything else) โ€” it's the lil' function that sets the display-list base for glCallLists. tiny function, big main character energy โœจ


๐ŸŽ€ NAME ๐ŸŽ€

glListBase โ€” set the display-list base for glCallLists ๐Ÿ’…


โœจ C SPECIFICATION โœจ

void glListBase( GLuint base )

that's it. that's the whole signature. no return value, no drama, just vibes ๐Ÿฆ‹


๐ŸŒธ PARAMETERS ๐ŸŒธ

  • base โ€” an integer offset, and it gets added to your glCallLists offsets to generate display-list names. the initial value is 0. so if you never call this, base is just chillin' at zero ๐Ÿ“

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

okay so here's the tea โ˜• glCallLists specifies an array of offsets. the display-list names? those get generated by adding base to each offset. so like, base + offset = name, no cap ๐Ÿงฎ

names that reference valid display lists get executed. the others? ignored. literally just skipped, no error, no yelling, nothing. they get ghosted ๐Ÿ‘ป


๐Ÿ’€ ERRORS ๐Ÿ’€

GL_INVALID_OPERATION is generated if glListBase is executed between the execution of glBegin and the corresponding execution of glEnd.

so like, do NOT call this inside a glBegin/glEnd pair. that's the forbidden zone bestie, the error will absolutely show up ๐Ÿ˜ญ

๐Ÿซถ ASSOCIATED GETS ๐Ÿซถ

glGet with argument GL_LIST_BASE โ€” that's how you peek at what base is set to rn ๐Ÿ‘€


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

  • glCallLists(3G) โ€” the whole reason this function exists fr fr

okay that's the page!! short and iconic, honestly a serve ๐Ÿ’…โœจ

this was GLLISTBASE(3G) โ€” the 3G manual, same as the header said. mwah, bye bestie ๐ŸŽ€๐Ÿฆ‹๐Ÿ’–

๐Ÿ“ฆ where this page comes from