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