More clean up for synch with 0.8.42

This commit is contained in:
Don BURNS
2001-09-19 21:19:47 +00:00
parent 2462c6273c
commit 7e81f6cfa6
292 changed files with 39673 additions and 0 deletions

42
include/osg/FrontFace Normal file
View File

@@ -0,0 +1,42 @@
#ifndef OSG_FRONTFACE
#define OSG_FRONTFACE 1
#include <osg/StateAttribute>
#include <osg/GL>
namespace osg {
/** Class to specifies the orientation of front-facing polygons.
*/
class SG_EXPORT FrontFace : public StateAttribute
{
public :
FrontFace();
virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const FrontFace*>(obj)!=0L; }
virtual Object* clone() const { return new FrontFace(); }
virtual const char* className() const { return "FrontFace"; }
virtual const Type getType() const { return FRONTFACE; }
enum Mode {
CLOCKWISE = GL_CW,
COUNTER_CLOCKWISE = GL_CCW
};
inline void setMode(const Mode mode) { _mode = mode; }
inline const Mode getMode() const { return _mode; }
virtual void apply(State& state) const;
protected:
virtual ~FrontFace();
Mode _mode;
};
};
#endif