Thanks Rui, new example now checked into svn/trunk. Cheers, Robert. On 8 December 2014 at 14:07, Wang Rui <[email protected]> wrote:
> Hi Robert, > > I've rewritten the osgblenddrawbuffers example to use the new BlendFunci > and Capability classes. Hope it will tell others how to make use of the new > functionality and why they are important in modern MRT-based applications. > > Cheers, > > Wang Rui > > 2014-12-03 1:21 GMT+08:00 Robert Osfield <[email protected]>: > >> 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 >> >> > > _______________________________________________ > 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
