Changeset 13041 for OpenSceneGraph/trunk/include/osgUtil/RenderBin
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgUtil/RenderBin (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgUtil/RenderBin
r12298 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 */ … … 26 26 class Statistics; 27 27 /** 28 * RenderBin base class. Renderbin contains geometries to be rendered as a group, 29 * renderbins are rendered once each. They can improve efficiency or 28 * RenderBin base class. Renderbin contains geometries to be rendered as a group, 29 * renderbins are rendered once each. They can improve efficiency or 30 30 * use different rendering algorithms. 31 31 * A renderBin can contain further renderBins producing a tree hierarchy of renderBins. … … 35 35 public: 36 36 37 typedef std::vector<RenderLeaf*> RenderLeafList; 37 typedef std::vector<RenderLeaf*> RenderLeafList; 38 38 typedef std::vector<StateGraph*> StateGraphList; 39 typedef std::map< int, osg::ref_ptr<RenderBin> > RenderBinList; 39 typedef std::map< int, osg::ref_ptr<RenderBin> > RenderBinList; 40 40 41 41 enum SortMode … … 117 117 virtual void sortTraversalOrder(); 118 118 119 struct SortCallback : public osg::Referenced 119 struct SortCallback : public osg::Referenced 120 120 { 121 121 virtual void sortImplementation(RenderBin*) = 0; … … 132 132 virtual void drawImplementation(osg::RenderInfo& renderInfo,RenderLeaf*& previous); 133 133 134 struct DrawCallback : public osg::Referenced 134 struct DrawCallback : public osg::Referenced 135 135 { 136 136 virtual void drawImplementation(RenderBin* bin,osg::RenderInfo& renderInfo,RenderLeaf*& previous) = 0; … … 157 157 158 158 virtual ~RenderBin(); 159 159 160 160 int _binNum; 161 161 RenderBin* _parent; … … 165 165 RenderLeafList _renderLeafList; 166 166 167 bool _sorted; 167 bool _sorted; 168 168 SortMode _sortMode; 169 169 osg::ref_ptr<SortCallback> _sortCallback; … … 179 179 #endif 180 180 181 181
