Hiding an image

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
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Hiding an image

Post by Tyn »

Hello all, happy New Year!

Is there a command to hide an image rather than drawing something over the top of it? I know of a command to set a button's visability and I figured since they are both members of irr::GUI they might share this command.
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

image or texture

Post by schick »

If your image is a irr::gui::IGUIImage gui element, it should be possible to make it in invisble using the irr::gui::IGUIElement::setVisible( false) function.
But if you image is a texture, just don't draw it.
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

How do you specify to the engine not to draw something? From what I have seen you only need to specify once to the engine to draw the image and it does it automatically, is there a way around this?
bappy
Posts: 63
Joined: Fri Dec 12, 2003 10:49 am
Location: france
Contact:

Post by bappy »

if you type node->setvisible(false)
the engine doesn t draw the node
if you want to remove the element you can type
node->drop();
-----------------------------
Sans danger, pas de gloire...
http;//bappy.free.fr
-----------------------------
Post Reply