Do you mean "avoid the need for _five_ new classes"? :-)

There are lots of ways this could be implemented in OSG. The existing
PrimitiveSet design appears to be a class per type of vertex array drawing
operation, so I tried to follow this lead and add new classes for the new
drawing operations.

Your suggestion would simplify the .osg and .ive support, though adding this
new PrimitiveSet member variable to .osg/.ive should be done in such a way
that it doesn't break backwards compatibility with existing files.

As I mentioned previously, there is no funding for this, so I'm not inclined
to rework it, if that's what you're asking?

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Robert Osfield
Sent: Tuesday, January 06, 2009 3:59 AM
To: OpenSceneGraph Submissions
Subject: Re: [osg-submissions] Support for draw_instanced

Hi Paul,

On reviewing the OpenGL implementation side I do wonder if we might be able
to just add the _nInstances variable to PrimitiveSet and have this set to 0
by default which would disable the feature, this would avoid the need for
three new classes.

Thoughts?
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.
org

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to