Page 1 of 1

Can't Clean Scene

Posted: Fri Mar 30, 2007 3:53 am
by Lokans
[Sorry about my bad english]


Im trying to clean a scene (GUI, Images, etc...)...
i Develop a SceneManager for the manage of "Stages" on each stage i put a method called Clean(); thats clean the whole Stage to pass to another one wich with the method Load() loads another....

The problem is that the i dont know how to clean BackGround Images... i Used Draw2DImage() for make an BackGround Image.... and i added 2 buttons on the first Stage.... i easly drop the buttons.... but i dont know how to drop the background image... The second stage is a full 3d scene... how can i drop the background image? :D

Thx

Posted: Fri Mar 30, 2007 4:21 pm
by spul
Not complete sure but have you tryed to remove the texture with

device.Videodriver.RemoveTexture(backgroundimage) ?