I'm trying to a line using the following. Now, am I missing something
obvious here? as this code doesn't work.
m_markerLine is a geode that contains a line drawable. 

osg::ref_ptr<osg::LineStipple> ls = new osg::LineStipple();
ls->setPattern( 0x00FF );
ls->setFactor( 2 );
        
m_markerLine->getOrCreateStateSet()->setAttribute( ls.get(),
osg::StateAttribute::ON );

Cheers

Kim
*****************************************************************************************
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*****************************************************************************************
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to