Added support for glLineWidth via an osg::LineWidth StateAttribute.

This commit is contained in:
Robert Osfield
2001-12-20 20:48:46 +00:00
parent 8aa72d85cf
commit 9365f0e3b1
8 changed files with 149 additions and 3 deletions

27
src/osg/LineWidth.cpp Normal file
View File

@@ -0,0 +1,27 @@
#include <osg/GL>
#include <osg/LineWidth>
#include <osg/Notify>
using namespace osg;
LineWidth::LineWidth()
{
_width = 1.0f;
}
LineWidth::~LineWidth()
{
}
void LineWidth::setWidth( const float width )
{
_width = width;
}
void LineWidth::apply(State&) const
{
glLineWidth(_width);
}