[osg-users] Draw geometry on demand

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


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!


Read this topic online here:

More information about the osg-users mailing list