Martin Beckett wrote:
I thought DrawArrays were the equivalent of OpenGL DisplayLists and DrawElements was like indexed arrays?

If you're familiar with OpenGL, osg::DrawArrays is equivalent to glDrawArrays(), osg::DrawElements is equivalent to glDrawElements(). The first uses the vertex arrays directly, the second uses an index array to select vertices from the vertex arrays.

Display lists are orthogonal to both of these ( glNewList() ). Either of these drawing methods can be compiled into a display list. Robert's point is that repeatedly altering data and recompiling the display list is expensive. It's better to avoid display lists altogether if you're making a lot of changes to the vertex data at runtime.

--"J"

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to