On 7/5/07, 徐华兵 <[EMAIL PROTECTED]> wrote:
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?
DrawArrayLengths is simply a compact way of doing multiple glDrawArray, the vector that DrawArrayLengths has contains the lengths of the glDrawArray calls, the initial offset use is _first, then next glDrawArray call uses _first + lenght of first array call. For examples of an OSG class in action do a search through the OSG source code, grep is your friend. Robert.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
