OpenSceneGraph/src/osg/LineStipple.cpp
Robert Osfield 12226e4371 Converted the instances of const built in types being returned from methods
and passed as paramters into straight forward non const built in types,
i.e. const bool foogbar(const int) becomes bool foobar(int).
2002-09-02 12:31:35 +00:00

34 lines
421 B
C++

#include <osg/GL>
#include <osg/LineStipple>
#include <osg/Notify>
using namespace osg;
LineStipple::LineStipple()
{
_factor = 1;
_pattern = 0xffff;
}
LineStipple::~LineStipple()
{
}
void LineStipple::setFactor(GLint factor)
{
_factor = factor;
}
void LineStipple::setPattern(GLushort pattern)
{
_pattern = pattern;
}
void LineStipple::apply(State&) const
{
glLineStipple(_factor, _pattern);
}