El Jueves 05 Julio 2007, 徐华兵 escribió: > osg-users: > Hello! When I use the core osg primitiveset, I see five derived class from > it, and I don't know the osg::DrawArrayLengths ,it sounds to contain a > std::vector, but unlike DrawElementsUByte(Int Short)which contain > std::vector, it also have a variable member "fisrt".And how it acts.Can you > give me a simple example to explain it? Thanks!
osg::DrawArray maps the functionality of OpenGL function glDrawArrays(). See it at: http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/drawarrays.html A good place to know how to use it is found at the osggeometry example. I don't know osg::DrawArrayLengths, might be a minor twist from osg::DrawArray. Reading OSG source code will clarify that. HTH, Alberto _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
