12226e4371
and passed as paramters into straight forward non const built in types, i.e. const bool foogbar(const int) becomes bool foobar(int).
20 lines
286 B
C++
20 lines
286 B
C++
#include <osg/BlendFunc>
|
|
|
|
using namespace osg;
|
|
|
|
BlendFunc::BlendFunc()
|
|
{
|
|
_source_factor = SRC_ALPHA;
|
|
_destination_factor = ONE_MINUS_SRC_ALPHA;
|
|
}
|
|
|
|
|
|
BlendFunc::~BlendFunc()
|
|
{
|
|
}
|
|
|
|
void BlendFunc::apply(State&) const
|
|
{
|
|
glBlendFunc( _source_factor, _destination_factor );
|
|
}
|