Some questions

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
Magus_Stragus
Posts: 86
Joined: Wed Aug 29, 2007 10:45 pm

Some questions

Post by Magus_Stragus »

Hey there. I have some questions about the GUI and the mouse.
1- How do I put the standart toolbar? (the one that has file, edition, help, and so on)
2- I want to do this: when the user click with the mouse on a on-screen image (2D), I want that around the mouse appears a small rectangle with a small portion of that image (say, around 30 x 30). How can I do that?
3- How do I do to allow the user to open an image from a file to load ii in the screen? (much like opening an image with Paint)
4- Can I crate and save bitmaps using Irrlicht?

Thanks
evo
Posts: 96
Joined: Mon Jun 27, 2005 6:46 pm
Location: The Netherlands

Post by evo »

1 & 3:
You can start by examining tutorials 5 an 9:
http://irrlicht.sourceforge.net/tut009.html
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

2: look at driver->draw2DTexture (or similar name, i forget if that's right). When you catch the button clicked event you can take the texture of the clicked button and then draw it at the mouse's coordinates each frame.
Image Image Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

And 4: Of course, use the IImageLoader and IImageWriter provided in the scene manager.
Magus_Stragus
Posts: 86
Joined: Wed Aug 29, 2007 10:45 pm

Post by Magus_Stragus »

Any help with those two functions? An example or something like that. Thanks
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Check the VideoDriver API, these are pretty simple to use.
Post Reply