Changeset 13041 for OpenSceneGraph/trunk/include/osgShadow/ShadowTexture
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgShadow/ShadowTexture
r6217 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 */ … … 29 29 30 30 ShadowTexture(const ShadowTexture& es, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY); 31 31 32 32 META_Object(osgShadow, ShadowTexture); 33 33 34 34 /** Set the texture unit that the shadow texture will be applied on.*/ 35 35 void setTextureUnit(unsigned int unit); … … 37 37 /** Get the texture unit that the shadow texture will be applied on.*/ 38 38 unsigned int getTextureUnit() const { return _textureUnit; } 39 40 39 40 41 41 /** initialize the ShadowedScene and local cached data structures.*/ 42 42 virtual void init(); 43 43 44 44 /** run the update traversal of the ShadowedScene and update any loca chached data structures.*/ 45 45 virtual void update(osg::NodeVisitor& nv); 46 46 47 47 /** run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.*/ 48 48 virtual void cull(osgUtil::CullVisitor& cv); 49 49 50 50 /** Clean scene graph from any shadow technique specific nodes, state and drawables.*/ 51 51 virtual void cleanSceneGraph(); 52 52 53 53 54 54 protected :
