OpenSceneGraph/src/osg/BlendFunc.cpp

20 lines
286 B
C++
Raw Normal View History

#include <osg/BlendFunc>
2001-01-11 00:32:10 +08:00
using namespace osg;
BlendFunc::BlendFunc()
2001-01-11 00:32:10 +08:00
{
_source_factor = SRC_ALPHA;
_destination_factor = ONE_MINUS_SRC_ALPHA;
}
BlendFunc::~BlendFunc()
2001-01-11 00:32:10 +08:00
{
}
void BlendFunc::apply(State&) const
2001-01-11 00:32:10 +08:00
{
glBlendFunc( _source_factor, _destination_factor );
2001-01-11 00:32:10 +08:00
}