Changeset 13041 for OpenSceneGraph/trunk/include/osg/Drawable
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Drawable (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Drawable
r12430 r13041 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 … … 123 123 virtual Geometry* asGeometry() { return 0; } 124 124 125 /** Convert 'const this' into a const Geometry pointer if Drawable is a Geometry, otherwise return 0. 125 /** Convert 'const this' into a const Geometry pointer if Drawable is a Geometry, otherwise return 0. 126 126 * Equivalent to dynamic_cast<const Geometry*>(this).*/ 127 127 virtual const Geometry* asGeometry() const { return 0; } … … 200 200 { 201 201 _boundingBox = _initialBound; 202 if (_computeBoundCallback.valid()) 202 if (_computeBoundCallback.valid()) 203 203 _boundingBox.expandBy(_computeBoundCallback->computeBound(*this)); 204 204 else 205 205 _boundingBox.expandBy(computeBound()); 206 206 207 207 _boundingBoxComputed = true; 208 208 } … … 275 275 inline GLuint& getDisplayList(unsigned int contextID) const { return _globjList[contextID]; } 276 276 277 /** When set to true, ignore the setUseDisplayList() settings, and hints to the drawImplementation 277 /** When set to true, ignore the setUseDisplayList() settings, and hints to the drawImplementation 278 278 method to use OpenGL vertex buffer objects for rendering.*/ 279 279 virtual void setUseVertexBufferObjects(bool flag); … … 426 426 * must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable. 427 427 * drawImplementation(RenderInfo&) is called from the draw(RenderInfo&) method, with the draw method handling management of OpenGL display lists, 428 * and drawImplementation(RenderInfo&) handling the actual drawing itself. 428 * and drawImplementation(RenderInfo&) handling the actual drawing itself. 429 429 * @param renderInfo The osg::RenderInfo object that encapsulates the current rendering information including the osg::State OpenGL state for the current graphics context. */ 430 430 virtual void drawImplementation(RenderInfo& renderInfo) const = 0; … … 801 801 802 802 /** Function to call to get the extension of a specified context. 803 * If the Extension object for that context has not yet been created 803 * If the Extension object for that context has not yet been created 804 804 * and the 'createIfNotInitalized' flag been set to false then returns NULL. 805 * If 'createIfNotInitalized' is true then the Extensions object is 805 * If 'createIfNotInitalized' is true then the Extensions object is 806 806 * automatically created. However, in this case the extension object is 807 807 * only created with the graphics context associated with ContextID..*/
