[osg-users] Draw geometry on demand

Tyler Durden mynewphoneaaaa at gmail.com
Sun Jun 10 00:53:34 PDT 2018


Hi,

I like to know how to redraw geometry on demand.
I have a osg:geometry with attached VertexArray and PrimitiveSet.
I need to send draw command to redraw geometry.
I see there is a "draw" method in DrawElements class, but that wants 
an osg::State that i dont know how to get. 
Or alternatively is there any other procedure how to do that, like some UpdateCallback?
Can anyone help me?

Thank you!

Cheers,
Tyler

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74018#74018







More information about the osg-users mailing list