PDA

View Full Version : va&display lists?



titan
01-10-2003, 01:02 PM
If I turn the following vertex array drawing into a display list:
draw(){
foreach()
{
glEnableClientState()
glVertexPointer()
}
glDrawElements()
foreach()
glDisableClientState()
}

I can then just call the display list and forget about anything to do with vertex array completely, right?
Infact I could free the memory because OpenGL makes a copy of the data in the display lists, right?

Bob
01-10-2003, 01:53 PM
Yes, that is correct.