First page Back Continue Last page Overview Graphics
spheres.c Test Program
Generates spherical triangle mesh with user-specified number of triangles per sphere and number of spheres per frame.
Mesh can be drawn with conventional vertex arrays (glBegin/glVertex/glEnd), with display lists or Vertex Buffer Objects.
May be used in sort-first or parallel sort-last mode. Vary the triangle count to emphasize triangle rate or compositing rate.
Triangle rate and frame rate printed to stdout.
Simple, but effective.