PDA

View Full Version : VBOs and Display Lists?



barnabas79
02-25-2010, 07:47 PM
I'm attempting to draw a series of primitives by using vertex buffer objects (vbos)... however, I'm experiencing some difficulties.

Because the code I'm writing is part of a plugin, it's executed within a display list. My question: is it still possible to use vbos within the context of a display list? In order for this to work, I assume the commands for initializing the vbos / setting their data (ie, glBufferData) would have to NOT be rolled into the display list, while the ones for setting current vbo (ie, glBindBuffer) would be. Is this what happens? Is there anything in particular I would need to know in order to use vbos with display lists?

Any information / hints would be appreciated!

Thanks, Paul