Hey all,
I posted a while back about being interested in using osg's
implementation of ref_ptrs in non osg related projects without
drawing in osg as a dependency. I went ahead and split it out for my
own use.
The new lib is called libsmrt and there are three small differences
from the osg version:
1. the namespace has been changed from 'osg' to 'smrt'
2. Java wrapper stuff was removed (to avoid separation compexities)
3. osg::Notify functionatlity removed (so it wouldnt rely on
any other osg'ness)
Everything else should be the same. "Export" stuff has been mirrored,
and even the make system is as identical as possible.
Caveats:
Generally you can mix osg and smrt ref_ptrs because they use
their templateness to simply use any object's ref, unref, functions.
However, you cannot create 'smrt::observer_ptr's to 'osg::Referenced'
objects because 'osg::Referenced' refers specifically to
'osg::observer_ptr' for removal.
It wasnt much work, but I thought I'd still offer it up to anyone who
might want it. I dont have any where to publish it at the moment, so
if anyone would like it, just email me personally and ill send you a
tarball.
Andy
Andrew Somerville
Software Engineer
Applied Perception Inc.
A Foster-Miller company
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/