Hi Daniel,
The getModeUsage covers all the modes that a StateAttribute can cover,
if you don't wish to turn them all on then you set do:
stateset->setMode(GL_POLYGON_OFFSET_FILL, osg::StateAttribute::ON);
stateset->setAttribute(polygonmode);
On 7/31/06, Daniel Trstenjak <[EMAIL PROTECTED]> wrote:
Hi all,
I think that the implementation of osg::PolygonOffset::getModeUsage(..)
doesn't make sense.
bool PolygonOffset::getModeUsage(ModeUsage& usage) const
{
usage.usesMode(GL_POLYGON_OFFSET_FILL);
usage.usesMode(GL_POLYGON_OFFSET_LINE);
usage.usesMode(GL_POLYGON_OFFSET_POINT);
return true;
}
In this case the PolygonOffset for all there
Polygon-Modes is activated.
Normally the PolygonOffset is activated for
one Polygon-Mode.
Or I'm just missing something ?
Regards,
Daniel
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/