GUI 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
anandh
Posts: 61
Joined: Thu Sep 14, 2006 12:40 pm
Contact:

GUI image

Post by anandh »

I'm working on card game.
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=24361
I'm using GUI images for card.is there is in build method to swap 2 image.
If there is custom method plz share your knowledge.It will be great help for my game.
anandh
Last edited by anandh on Thu Oct 18, 2007 4:45 am, edited 1 time in total.
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

What do you mean by "swap 2 image"?

Code: Select all

img1->setVisible(false);
img2->setVisible(true);
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
anandh
Posts: 61
Joined: Thu Sep 14, 2006 12:40 pm
Contact:

Post by anandh »

I add 2 GUI images called I1 and I2.
I1 rendered first
I2 rendered next
Image
If i call some method I1 have to come front of I2.
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

Try switching texture of the surfaces.
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Just move the images on the stack, call bringToFront()
Post Reply