Hi Mark,

On 10/3/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:

> Or perhaps placing this method directly into osg::Object would be the
> way forward.  But then is this method appropriate for all
> osg::Objects?

Why is it in osg:Object at all?

Because its useful in enough disparent parts of the OSG.

> Or do we create another subclass from osg::Obejct something like
> ObjectWithPotentailOpenGLObjectThatMightNeedReleasing...

What about osg:Drawable as the base class that introduces this method
since it is dealing with OpenGL resources?

Well Drawables arn't the only place that has references to OpenGL objects, Texture objects, Program, Shaders, FBO's, then there are the classes that hold lists of these, and the scene grpah itself that contains all these objects...

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to