Changeset 13041 for OpenSceneGraph/trunk/include/osgDB/SharedStateManager
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgDB/SharedStateManager
r12006 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 */ … … 14 14 #ifndef OSGDB_SHAREDSTATEMANAGER 15 15 #define OSGDB_SHAREDSTATEMANAGER 1 16 16 17 17 18 18 #include <osg/NodeVisitor> … … 30 30 class OSGDB_EXPORT SharedStateManager : public osg::NodeVisitor 31 31 { 32 public: 32 public: 33 33 34 34 enum ShareMode … … 50 50 51 51 META_NodeVisitor("osgDB","SharedStateManager") 52 52 53 53 void setShareMode(unsigned int mode); 54 54 55 55 unsigned int getShareMode() { return _shareMode; } 56 56 … … 109 109 } 110 110 }; 111 111 112 112 // Lists of shared objects 113 113 typedef std::set< osg::ref_ptr<osg::StateAttribute>, CompareStateAttributes > TextureSet; … … 130 130 bool _shareStateSet[3]; 131 131 132 // Share connection mutex 132 // Share connection mutex 133 133 134 134 OpenThreads::Mutex *_mutex;
