OpenSceneGraph/src/osg/AlphaFunc.cpp

21 lines
263 B
C++
Raw Normal View History

#include <osg/AlphaFunc>
2001-01-11 00:32:10 +08:00
using namespace osg;
AlphaFunc::AlphaFunc()
{
_comparisonFunc = ALWAYS;
_referenceValue = 1.0f;
}
AlphaFunc::~AlphaFunc()
2001-01-11 00:32:10 +08:00
{
}
void AlphaFunc::apply(State&) const
2001-01-11 00:32:10 +08:00
{
glAlphaFunc((GLenum)_comparisonFunc,_referenceValue);
}