Thanks Paul 
- for the archives here's the code sample:

Code:

osg::StateSet* stateSet = new osg::StateSet();
model->setStateSet(stateSet);
osg::PolygonMode* state = new osg::PolygonMode;
state->setMode(osg::PolygonMode::FRONT_AND_BACK,osg::PolygonMode::POINT);
stateSet->setAttributeAndModes(state,osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);



Change the second arg to setMode() to change to line.

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to