Advertisement Jump to content
Sign in to follow this  

Display lists - glGenLists(?)

This topic is 4675 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i had a question about specifically glGenLists(). for example if you have GLuint mylist = glGenLists(1); will mylist always = 1? has anyone experienced glGenLists not returning a number other than 1? me and a co-worker were talking about what happens when you want to create multiple display lists. if you have multiple ones you will notice that the value of mylist would be 1, 2, 3, 5, 8, 13, 21..etc etc. what happens if you only have one display list and a 1 is not returned? does this ever happen? just trying to think deeper thats all.

Share this post

Link to post
Share on other sites
the list ID is just a unique number to identigfy the list
eg both the following will work

GLuint mylist = glGenLists(1);
GLuint mylist = 34545;

glGenLists(1); just returns a umber u havent used before

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!