OpenSceneGraph/src/osg/ColorMask.cpp

24 lines
351 B
C++
Raw Normal View History

2001-09-20 05:19:47 +08:00
#include <osg/ColorMask>
using namespace osg;
ColorMask::ColorMask()
{
// set up same defaults as glColorMask.
_red = true;
_green = true;
_blue = true;
_alpha = true;
}
ColorMask::~ColorMask()
{
}
void ColorMask::apply(State&) const
{
glColorMask((GLboolean)_red,(GLboolean)_green,(GLboolean)_blue,(GLboolean)_alpha);
}