PDA

View Full Version : Retrieving data from display lists



Ashkan
05-14-2008, 06:47 AM
I was wondering if it's possible to retrieve vertex data from an OpenGL display list ID after the list is created. Can I access that data in any form?

Thanks a bunch

Relic
05-14-2008, 06:59 AM
Generally: No.
Display lists are server state and will be optimized by the display driver to something different than you sent. E.g. immediate mode in, vertex arrays out.

"In any form": Maybe. ;)
You might be able to get the data back with the OpenGL feedback mode (pure SW, slow!!!) or with an OpenGL command trace tool, but I guess that's not what you wanted.

Simply don't go there. Use Vertex Buffer Objects if you need a more dynamic way of geometry data handling.

Ashkan
05-14-2008, 07:04 AM
Thanks a lot.