i want to draw quadratic objects using compiled vertex arrays. everything i have seen thus far uses a function glDrawElement() which draws gl_points,gl_line,gl_triange,etc. how can i draw quadrtic objects , i.e. spheres, so that it is fast and efficient? thanks for the help Incus.
You can try putting the quadratic into a display list, although I am not sure if this will help.
If you want to use vertex arrays, you’ll have to generate the vertex and face information yourself, perhaps look at the glu source from mesa.
That’s because there aren’t any quadric primitives in OpenGL. Everything is made up of points, lines and triangles. That’s all the GLU quadric routines do…