[osg-users] osg::LineStipple

Kim C Bale K.Bale at hull.ac.uk
Mon Jan 7 07:03:04 PST 2008


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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080107/3630adbd/attachment.pot 


More information about the osg-users mailing list