Hi Martin,
Now I change the values of _x and _y during the runtime, but the
geometry isn't changing. I would like pass a pointer to the osg::Vec3
and use the function "dirtyDisplayList".
Well, maybe I don't understand something, but you can always get the
vertices from the array and modify them.
osg::Vec3f* vertexData = (osg::Vec3f*)vertices->getDataPointer();
Then vertexData is an array [0..nVertices-1] of Vec3f, and if you know
which index the vertex was inserted at, you can modify it there:
vertexData[index].set(x, y, z);
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org