[osg-users] Get RenderBinDetails

Bruno Oliveira bruno.manata.oliveira at gmail.com
Mon May 29 05:39:05 PDT 2017


Thank you. Didn't realize the bin number was the same of bin details.

2017-05-24 11:43 GMT+01:00 Robert Osfield <robert.osfield at gmail.com>:

> Hi Bruno,
>
> From the include/osg/StateSet header:
>
>         /** Set the render bin details.*/
>         void setRenderBinDetails(int binNum,const std::string&
> binName,RenderBinMode mode=USE_RENDERBIN_DETAILS);
>
> ...
>
>         /** Set the render bin number.*/
>         inline void setBinNumber(int num) { _binNum=num; }
>
>         /** Get the render bin number.*/
>         inline int getBinNumber() const { return _binNum; }
>
> Robert.
>
> On 24 May 2017 at 10:44, Bruno Oliveira <bruno.manata.oliveira at gmail.com>
> wrote:
> > Hello,
> >
> > in order to sort my nodes by depth, I use the following code to a node's
> > stateset
> >
> > nodeStateSet->setRenderBinDetails(order, "DepthSortedBin");
> >
> > where "order" is an int. Now, how do I get that value when I'm iterating
> > over my nodes?
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-
> openscenegraph.org
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170529/759fbaea/attachment-0002.htm>


More information about the osg-users mailing list