From b8f7310d501882753c3b7d5c84dbc8e8119b0f2f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 22 Oct 2009 12:04:26 +0000 Subject: [PATCH] Removed, now inappropriate, references to glBegin/glEnd. --- include/osg/Geometry | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/osg/Geometry b/include/osg/Geometry index 817790cfe..7214a21b1 100644 --- a/include/osg/Geometry +++ b/include/osg/Geometry @@ -327,9 +327,11 @@ class OSG_EXPORT Geometry : public Drawable bool getFastPathHint() const { return _fastPathHint; } /** Return true if OpenGL fast paths will be used with drawing this Geometry. - * Fast paths use vertex arrays, and glDrawArrays/glDrawElements. Slow paths - * use glBegin()/glVertex.../glEnd(). Use of per primitive bindings or per vertex indexed - * arrays will drop the rendering path off the fast path. + * Fast paths directly use vertex arrays, and glDrawArrays/glDrawElements so have low CPU overhead. + * With Slow paths the osg::Geometry::drawImplementation has to dynamically assemble OpenGL + * compatible vertex arrays from the osg::Geometry arrays data and then dispatch these to OpenGL, + * so have higher CPU overhead than the Fast paths. + * Use of per primitive bindings or per vertex indexed arrays will drop the rendering path off the fast path. */ inline bool areFastPathsUsed() const {