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?
Quick 2d Question.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.
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.