On 23 July 2013 19:26, Aurelien Albert <[email protected]> wrote:

> Yes, it would definitely be usefull ! Maybe not necessary from the
> osg::State : I'm not sure this is the right place to store the current
> RenderStage : a RenderStage is maybe more part of the "current rendering"
> than the "current OpenGL State". Perhaps storing it in the RenderInfo
> passed to the "draw" method should be enough ?
>
> (but the problem of circular dependcy still exists...)
>

One could forward declare osgUtil::RenderStage and osgUtil::RenderBin in
include/osg/RenderInfo and then allow the current bin/stage pointer be
stored in RenderInfo.  User code would need to include
RenderStage/RenderBin if they need it.

StateAttribute currently only uses osg::State, but this really needs to be
replaced with RenderInfo.

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

Reply via email to