Hello, if I have created some objects in a FXGLViewer and want to remove them and free that memory. How do I do? Regards Bj?rn Bergqvist
On Feb 12, 2007, at 3:11 AM, Bj?rn Bergqvist wrote:> if I have created some objects in a FXGLViewer and want to remove them > and free that memory. How do I do?I will assume for the moment that all of the objects in the GLViewer''s scene are in a GLGroup (as they are in the example program). In that case, just remove the object(s) from the group, e.g. glviewer.scene.remove(obj) and then call update on the glviewer to get it to redraw itself: glviewer.update Hope this helps, Lyle