Added osg::ShadeModel state attribute which encapsulates glShadeModel.

This commit is contained in:
Robert Osfield
2002-01-04 17:35:54 +00:00
parent 7a7322f7b0
commit 4ea7de39c6
9 changed files with 169 additions and 5 deletions

19
src/osg/ShadeModel.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include <osg/GL>
#include <osg/ShadeModel>
using namespace osg;
ShadeModel::ShadeModel()
{
_mode = SMOOTH;
}
ShadeModel::~ShadeModel()
{
}
void ShadeModel::apply(State&) const
{
glShadeModel((GLenum)_mode);
}