Changeset 13041 for OpenSceneGraph/trunk/include/osgGA/StateSetManipulator
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgGA/StateSetManipulator
r9340 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 46 46 /** get the attached a StateSet.*/ 47 47 virtual const osg::StateSet * getStateSet() const; 48 48 49 49 50 50 /** Handle events, return true if handled, false otherwise.*/ 51 virtual bool handle(const GUIEventAdapter& ea,GUIActionAdapter& us); 51 virtual bool handle(const GUIEventAdapter& ea,GUIActionAdapter& us); 52 52 53 53 /** Get the keyboard and mouse usage of this manipulator.*/ 54 54 virtual void getUsage(osg::ApplicationUsage& usage) const; 55 55 56 56 void setMaximumNumOfTextureUnits(unsigned int i) { _maxNumOfTextureUnits = i; } 57 57 unsigned int getMaximumNumOfTextureUnits() const { return _maxNumOfTextureUnits; } 58 58 59 59 void setBackfaceEnabled(bool newbackface); 60 60 bool getBackfaceEnabled() const {return _backface;}; … … 68 68 void setPolygonMode(osg::PolygonMode::Mode newpolygonmode); 69 69 osg::PolygonMode::Mode getPolygonMode() const; 70 70 71 71 void cyclePolygonMode(); 72 72 … … 97 97 bool _texture; 98 98 unsigned int _maxNumOfTextureUnits; 99 99 100 100 int _keyEventToggleBackfaceCulling; 101 101 int _keyEventToggleLighting;
