Hi Terry,

On 18 July 2013 17:03, Terry Welsh <[email protected]> wrote:

> I found a (maybe temporary) solution with DrawArrays. I already submitted
> changes to PrimitiveSet to make DrawElements* more flexible about how much
> they draw. I think it's good functionality to have in any case. If it
> doesn't interest you I'll try deriving from DrawElementsUShort and see if I
> can get better performance than my DrawArrays solution.
>

I spotted your submission right after finishing my run through posts to
osg-users, I haven't review it yet but I'm inclined not to merge the change
as it adds extra API and data settings that aren't required right now, and
would add an extra if () {} else {} block into each invocation of
DrawElementUShort, something that isn't good for code that will almost
always be used as it has always been without the extra setCount() - I don't
want the majority paying a price for the convenience of a tiny set of
users.  I believe a subclass from DrawElementsUShort should work fine for
you so would recommend looking at this route.

Cheers,
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to