- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgShadow/LightSpacePerspectiveShadowMap
r12188 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 * … … 32 32 class LispSM; 33 33 34 class OSGSHADOW_EXPORT LightSpacePerspectiveShadowMapAlgorithm 34 class OSGSHADOW_EXPORT LightSpacePerspectiveShadowMapAlgorithm 35 35 { 36 36 public: … … 40 40 void operator() ( 41 41 const osgShadow::ConvexPolyhedron* hullShadowedView, 42 const osg::Camera* cameraMain, 42 const osg::Camera* cameraMain, 43 43 osg::Camera* cameraShadow ) const; 44 44 … … 47 47 }; 48 48 49 // Optimized for draw traversal shadow bounds 49 // Optimized for draw traversal shadow bounds 50 50 class OSGSHADOW_EXPORT LightSpacePerspectiveShadowMapDB: public ProjectionShadowMap< MinimalDrawBoundsShadowMap, LightSpacePerspectiveShadowMapAlgorithm > 51 51 { … … 61 61 /** Classic OSG cloning constructor */ 62 62 LightSpacePerspectiveShadowMapDB( 63 const LightSpacePerspectiveShadowMapDB& copy, 63 const LightSpacePerspectiveShadowMapDB& copy, 64 64 const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : BaseClass(copy,copyop) 65 65 { … … 70 70 }; 71 71 72 // Optimized for cull traversal shadow bounds 72 // Optimized for cull traversal shadow bounds 73 73 class OSGSHADOW_EXPORT LightSpacePerspectiveShadowMapCB: public ProjectionShadowMap< MinimalCullBoundsShadowMap, LightSpacePerspectiveShadowMapAlgorithm > 74 74 { … … 77 77 typedef ProjectionShadowMap< MinimalCullBoundsShadowMap, LightSpacePerspectiveShadowMapAlgorithm > BaseClass; 78 78 79 /** Classic OSG constructor */ 79 /** Classic OSG constructor */ 80 80 LightSpacePerspectiveShadowMapCB() 81 81 { … … 84 84 /** Classic OSG cloning constructor */ 85 85 LightSpacePerspectiveShadowMapCB( 86 const LightSpacePerspectiveShadowMapCB& copy, 86 const LightSpacePerspectiveShadowMapCB& copy, 87 87 const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : BaseClass(copy,copyop) 88 88 { … … 93 93 }; 94 94 95 // Optimized for view frustum bounds 95 // Optimized for view frustum bounds 96 96 class OSGSHADOW_EXPORT LightSpacePerspectiveShadowMapVB: public ProjectionShadowMap< MinimalShadowMap, LightSpacePerspectiveShadowMapAlgorithm > 97 97 { … … 107 107 /** Classic OSG cloning constructor */ 108 108 LightSpacePerspectiveShadowMapVB( 109 const LightSpacePerspectiveShadowMapVB& copy, 109 const LightSpacePerspectiveShadowMapVB& copy, 110 110 const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : BaseClass(copy,copyop) 111 111 {
