2001-10-22 05:27:40 +08:00
|
|
|
#include <osg/GL>
|
|
|
|
#include <osg/FrontFace>
|
2001-09-20 05:19:47 +08:00
|
|
|
|
|
|
|
using namespace osg;
|
|
|
|
|
|
|
|
FrontFace::FrontFace()
|
|
|
|
{
|
|
|
|
_mode = COUNTER_CLOCKWISE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FrontFace::~FrontFace()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void FrontFace::apply(State&) const
|
|
|
|
{
|
|
|
|
glFrontFace((GLenum)_mode);
|
|
|
|
}
|