Paul Melis wrote:
>
> class OSG_EXPORT DrawArrayLengths : public PrimitiveSet, public
> VectorGLsizei
> {
> public:
> [...]
>
> where VectorGLsizei is (basically) std::vector<GLsizei>. So you can just do
>
> osg::DrawArrayLengths *arr = new osg::DrawArrayLengths();
> arr->push_back(5);
> arr->erase(arr->begin()+10, arr->begin()+20);
>
My bad, I should have seen it myself.
Anyway, thank you for the help.
Paul Melis wrote:
>
> With "indices" do you mean OpenGL indices here (as in drawing primitives
> by index), or do you mean indices in the DrawArrayLengths array? Rabbi
> means the former is generally not recommended for performance reasons.
> The latter is something completely different and is no problem.
>
I mean the indices in DrawArray.
Thus there is no performance problem, right?
Thanks for all.
Max
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13052#13052
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org