Dark Bit Factory & Gravity

PROGRAMMING => General coding questions => Topic started by: Pixel_Outlaw on October 01, 2007

Title: More OpenGL questions. Best ways to handle drawing.
Post by: Pixel_Outlaw on October 01, 2007
Question 1
I was wondering about the use of drawing lists.

First what would be the fasest way to draw hundreds of quads with a single texture in various sizes.
-Dynamically
-Gl Lists
-Gl Arrays

Also when drawing these quads dynamically is it better to use scaling to resize the borders or is it just faster to use dynamic variables?

Title: Re: More OpenGL questions. Best ways to handle drawing.
Post by: stormbringer on October 01, 2007
vertex arrays are very fast (and made for that purpose actually).

display lists are an old mechanism.

also if you use a single texture, just bind the texture once, then simply draw multiple quads. Geometry is very fast, texture binding slows it down. So minimize texture binding as much as you can