2001-12-21 04:48:46 +08:00
|
|
|
#include <osg/GL>
|
|
|
|
#include <osg/LineWidth>
|
|
|
|
#include <osg/Notify>
|
|
|
|
|
|
|
|
using namespace osg;
|
|
|
|
|
|
|
|
|
|
|
|
LineWidth::LineWidth()
|
|
|
|
{
|
|
|
|
_width = 1.0f;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LineWidth::~LineWidth()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2002-10-08 13:41:19 +08:00
|
|
|
void LineWidth::setWidth( float width )
|
2001-12-21 04:48:46 +08:00
|
|
|
{
|
|
|
|
_width = width;
|
|
|
|
}
|
|
|
|
|
|
|
|
void LineWidth::apply(State&) const
|
|
|
|
{
|
|
|
|
glLineWidth(_width);
|
|
|
|
}
|
|
|
|
|