I’ve been working with OpenGL for a while, but my biggest problem is how to store the display lists. I have about 1000 complex polygons each requiring about 50 vertices to draw.
Options that I’m aware of:
- Put all the points for a single polygon into an array and put all the arrays into a list. Iterate across this list and create display lists to use later in the program. This is what I currently do, but it’s not very flexible.
- Put all the points for a single polygon into an XML entry and save all the entries into a larger XML document (or other file). Iterate across the document and create display lists for use later in the program.
Is there a way to compile the display lists and load them into the system since the lists are always the same? Even if they change if I can compile and drop the compiled module in with the executable that’d be great.
Any suggestions on this is very welcome!!