On 6/15/06, david callu <[EMAIL PROTECTED]> wrote:

I don't understand why an enum osg::StateAttribute::GLMode is more or less
maintainable and extensible than osg::StateAttribute::Type

The whole point of the way that the OSG uses OpenGL modes is a direct
passthrough, the OSG does nothing but pass these values on.  This
allows the OSG to handle modes that it doesn't know anything about, it
doesn't need to know, its just passes them along.  This is very good
thing.  While it might not be convinient for specifically what you
want to do with it, its very usual for the vast majority of OSG usage.

The StateAttributes types is a very diffrent construct, its related to
OSG's OO wrapping up on OpenGL state attributes.  The Type is there to
help keep performance up w.r.t the internal maps in StateSet, its a
neccessary evil.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to