Hi Rui, On 2 December 2014 at 16:04, Wang Rui <[email protected]> wrote:
> I understand. So what about deriving from current BlendFunc/ColorMask > classes directly? In this way we are not going to rewrite those set/get > functions but still use the parent's. Re-implementing the apply() method > and making use of the member variable will make the separate-indexed > subclasses work. > This is essentially what I have done - I have just checked them in, along with a refactor of how the extensions are set up. An svn update will get osg::BlendFunci, BlendEquationi and ColorMaski. I have included serializers for these. The new mechanism I've used for setting up extensions is much simpler and require far less code so I'm planning on rolling it out more widely. The BlenFunc*, BlendEquation* classes will illustrate how the extensions. I'll write more about this on osg-users once I've got a bit further with the refactor efforts. I haven't yet implement glEnablei/glDisablei, so will tackle these tomorrow morning. I haven't written any tests for these new classes yet either. I'd appreciate others diving in to help out with new example development to help illustrate how to use them. Cheers, Robert.
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
