14 #ifndef OSGGA_STATESET_MANIPULATOR
15 #define OSGGA_STATESET_MANIPULATOR 1
17 #include <osgGA/Export>
18 #include <osgGA/GUIEventAdapter>
19 #include <osgGA/GUIActionAdapter>
20 #include <osgGA/GUIEventHandler>
22 #include <osg/StateSet>
23 #include <osg/PolygonMode>
38 virtual const char*
className()
const {
return "StateSetManipulator"; }
59 void setBackfaceEnabled(
bool newbackface);
62 void setLightingEnabled(
bool newlighting);
65 void setTextureEnabled(
bool newtexture);
71 void cyclePolygonMode();
virtual const char * className() const
void setKeyEventToggleBackfaceCulling(int key)
bool getTextureEnabled() const
unsigned int _maxNumOfTextureUnits
int _keyEventToggleBackfaceCulling
int getKeyEventToggleLighting() const
int getKeyEventCyclePolygonMode() const
void setKeyEventToggleLighting(int key)
T * clone(const T *t, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
bool getLightingEnabled() const
osg::ref_ptr< osg::StateSet > _stateset
void setKeyEventCyclePolygonMode(int key)
int _keyEventToggleLighting
int getKeyEventToggleTexturing() const
void setKeyEventToggleTexturing(int key)
bool getBackfaceEnabled() const
int getKeyEventToggleBackfaceCulling() const
int _keyEventCyclePolygonMode
int _keyEventToggleTexturing
void setMaximumNumOfTextureUnits(unsigned int i)
unsigned int getMaximumNumOfTextureUnits() const