Changeset 13041 for OpenSceneGraph/trunk/include/osgShadow/ShadowTechnique
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgShadow/ShadowTechnique
r12782 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 */ … … 35 35 36 36 ShadowTechnique(const ShadowTechnique& es, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY); 37 37 38 38 META_Object(osgShadow, ShadowTechnique); 39 39 … … 41 41 42 42 const ShadowedScene* getShadowedScene() const { return _shadowedScene; } 43 43 44 44 /** initialize the ShadowedScene and local cached data structures.*/ 45 45 virtual void init(); 46 46 47 47 /** run the update traversal of the ShadowedScene and update any local cached data structures.*/ 48 48 virtual void update(osg::NodeVisitor& nv); 49 49 50 50 /** run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.*/ 51 51 virtual void cull(osgUtil::CullVisitor& cv); 52 52 53 53 /** Clean scene graph from any shadow technique specific nodes, state and drawables.*/ 54 54 virtual void cleanSceneGraph(); 55 55 56 56 virtual void traverse(osg::NodeVisitor& nv); 57 57 58 58 /** Dirty so that cached data structures are updated.*/ 59 59 virtual void dirty() { _dirty = true; } … … 77 77 78 78 virtual ~ShadowTechnique(); 79 79 80 80 friend class ShadowedScene; 81 81 82 82 ShadowedScene* _shadowedScene; 83 83 bool _dirty; 84 84 85 85 }; 86 86
