Quick 2d Question.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
iamtehpwn
Posts: 30
Joined: Sat Mar 31, 2007 6:11 pm

Quick 2d Question.

Post by iamtehpwn »

So once I draw a 2d image on to the screen, I use the fuction drive->remoteTexture(ITexture* texture);
However, When I ever do, This only deletes the variable and doesn't clear the image from the screen.

So Basically, I'm just curious, whats the best approach to clear a 2d image from the screen, without deleting the variable?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You got these methods totally wrong. Do not remove a texture unless you will never ever use it anymore anywhere. And be sure that no code references it anymore.
If you draw the image with draw2DImage it will be removed whenever you don't call this method anymore. If you use a GUI image you have to make it invisible or remove it from the GUI tree.
Post Reply