OpenSceneGraph/src/osg/ShadeModel.cpp

20 lines
223 B
C++

#include <osg/GL>
#include <osg/ShadeModel>
using namespace osg;
ShadeModel::ShadeModel()
{
_mode = SMOOTH;
}
ShadeModel::~ShadeModel()
{
}
void ShadeModel::apply(State&) const
{
glShadeModel((GLenum)_mode);
}