OpenSceneGraph/src/osg/PolygonOffset.cpp

21 lines
314 B
C++
Raw Normal View History

2001-01-11 00:32:10 +08:00
#include "osg/GL"
#include "osg/PolygonOffset"
using namespace osg;
PolygonOffset::PolygonOffset()
2001-01-11 00:32:10 +08:00
{
_factor = 0.0f; // are these sensible defaut values?
2001-01-11 00:32:10 +08:00
_units = 0.0f;
}
PolygonOffset::~PolygonOffset()
2001-01-11 00:32:10 +08:00
{
}
void PolygonOffset::apply(State&) const
2001-01-11 00:32:10 +08:00
{
glPolygonOffset(_factor,_units);
}