PDA

View Full Version : glCallList() probelem



AeroSujan
11-11-2009, 01:16 AM
Friends
I am trying to call opengl items using
glCallList(index)
While i was creating many objects I was holding their indices in an array and while I am trying to display one at a time by calling
glCallList(index); passing the index.
But its displaying the most recent object created.
While the index value is correct but its not displaying previousobjects.

Can anyone help me undertsnad whats going on !
Any help would be appraciated.

Thanks
sujan

scratt
11-11-2009, 05:00 AM
Perhaps post your list creation and drawing code...

From your description what you are doing sounds ok, but there could be any number of issues with your glListBase setting, or perhaps a logical error to do with allocating lists and compiling them.

The latter seems most likely.