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