Changeset 13041 for OpenSceneGraph/trunk/include/osgUtil/RenderLeaf
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgUtil/RenderLeaf (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgUtil/RenderLeaf
r10275 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 */ … … 34 34 { 35 35 public: 36 36 37 37 38 38 inline RenderLeaf(osg::Drawable* drawable,osg::RefMatrix* projection,osg::RefMatrix* modelview, float depth=0.0f, unsigned int traversalNumber=0): … … 48 48 } 49 49 50 50 51 51 inline void set(osg::Drawable* drawable,osg::RefMatrix* projection,osg::RefMatrix* modelview, float depth=0.0f, unsigned int traversalNumber=0) 52 52 { … … 59 59 _traversalNumber = traversalNumber; 60 60 } 61 61 62 62 inline void reset() 63 63 { … … 70 70 _traversalNumber = 0; 71 71 } 72 72 73 73 virtual void render(osg::RenderInfo& renderInfo,RenderLeaf* previous); 74 74 75 75 /// Allow StateGraph to change the RenderLeaf's _parent. 76 76 friend class osgUtil::StateGraph; 77 77 78 78 public: 79 80 81 79 80 81 82 82 StateGraph* _parent; 83 83 … … 88 88 osg::Drawable* _drawable; 89 89 const osg::Drawable* getDrawable() const { return _drawable; } 90 #endif 90 #endif 91 91 osg::ref_ptr<osg::RefMatrix> _projection; 92 92 osg::ref_ptr<osg::RefMatrix> _modelview;
