Hi Robert,
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.
Wang Rui
------------------ Original ------------------
From: "Robert Osfield";<[email protected]>;
Date: Tue, Dec 2, 2014 05:01 PM
To: "OpenSceneGraph Submissions"<[email protected]>;
Subject: Re: [osg-submissions] Separated blending formultiplerenderingtargets
I thought about extending these classes but the extra buffer index value needs
to be handled in an way that doesn't confuse the function of the usage when you
don't want to use the indexed versions of the gl functions. I considered
having a special index value for none indexed values but in the end have
concluded such cludges aren't good, it's better to subclasses and add the
indexed versions.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org