12226e4371
and passed as paramters into straight forward non const built in types, i.e. const bool foogbar(const int) becomes bool foobar(int).
34 lines
421 B
C++
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);
|
|
}
|
|
|