On 7/5/06, Divick Kishore <[EMAIL PROTECTED]> wrote:
Hi Robert,
                thanks for the reply. There is still one doubt, that
there are two helper functions in SceneView, one being
releaseAllGLObjects and other being flushAllDeletedGLObjects, so which
one shall I use to delete the cached GLObjects?

Well SceneView actuallys calls a flushDeleteGLObjects on every frame,
so most likely you won't need to call it the explitcly - you only need
to do if you want to clean up a graphics context from all its objects
in one go.

You won't need to call releaseAllGLObjects either in most
circumstances, as just deleting the scene graph will autoamtically
release all the GL Objects associated with it.

These methods are only there if you really need to clean up everything
at a specific point in time.  The osgsimplepager example shows an
example of cleaning the scene graph after destroying a graphics
context ready to for the scene graph to be reused with a new graphics
context.  This is a special case that illustrates the usage of these
GL Object clean up methods.

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

Reply via email to