Hi Sebastian,

On 27 November 2013 11:26, Sebastian Messerschmidt <
[email protected]> wrote:

>  Okay I can try to refactor it, but I'm not 100% sure if I got you right.
> Would the caching attribute (last_applied_shadercomponent) still be used
> then?
>

I'm thinking last_applied_shadercomponent would be redundent and could be
removed.


> Also do you mean by "get the last applied StateAttribute's from the
> AttributeStack" to use the last_applied_attribute member?
>

Yes, use last_applied_attribute instead of last_applied_shadercomponent.
 The code associated with the later could be completely removed from
osg::State so would simply it a little.

Simplifying code and providing greater extensibility sounds like a good
design change to me :-)

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

Reply via email to