From: Diederick C. N. <dc...@gm...> - 2012-03-16 11:43:58
|
Hi all, On Fri, Mar 16, 2012 at 19:12, Diederick C. Niehorster <dc...@gm...> wrote: > Thats sucks, no they are not (nor are they in OpenGL 3 by the way). > Also, the only drawing primitives are GL_POINTS, GL_LINE_STRIP, > GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, and > GL_TRIANGLES. This are also the only relevant available primitives with OpenGL 3+. So the best we can do, without spending a lot of brainpower on each individual shape is to use GL_TRIANGLES for the filled (the more efficient TRIAGNLE ones will make it hard to get the normals right as far as i can see), and drawing each individual edge using GL_LINES for the wireframe. I should be able to generate arrays for both efficiently, using glDrawArrays as doing now for solids, but glDrawElements for the lines to further compress storage. Do we care about normals for the wire frames, don't think so right? Best, Dee |