On Tue, 2006-10-03 at 21:28 +0100, Robert Osfield wrote:
> Or do we create another subclass from osg::Obejct something like
> ObjectWithPotentailOpenGLObjectThatMightNeedReleasing...
Yes I agree (thanks to the discussion up to this point). Extending the
mix-in design of osg::Object leads nicely to a clean derivation (pseudo
code) that encapsulates GL resource management:
class osg::GLObject : public virtual osg::Object {
virtual void releaseGLObjects(osg::State* = 0) const {}
};
... for other classes to mix-in instead of osg::Object directly.
Regards,
Marcus
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/