Hi Bob,

osgUtil::RenderBin::addRenderBinPrototype() is static member function call,
so you just call it with the body of your initialization code.  You could
do this within a proxy object if you wished to keep the implementation
similar to what you've used before.

Robert.


On 25 April 2013 09:05, Bob Smith <[email protected]> wrote:

> Hi,
>
> Thanks for the hint, but I tried that already, it gives me a
> C2761: 'void osgUtil::RenderBin::addRenderBinPrototype(const std::string
> &,osgUtil::RenderBin *)' : member function redeclaration not allowed
>
> The code which I want to replace is outside a class, like this:
>
>
> Code:
> #include ...
> #include ...
> #include ...
>
> using namespace osgHaptics;
>
> osgUtil::RenderBin::addRenderBinPrototype("HapticRenderBin",new
> HapticRenderBin);
>
> HapticRenderBin::HapticRenderBin(SortMode mode) : RenderBin(mode),
> m_last_frame(-1)
> {
>
> }
>
> ...
>
>
>
> Is the new addRenderBinPrototype only usable inside a function?
>
>
> Thank you!
>
> Cheers,
> Bob
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=53797#53797
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to