Page 1 of 1

Some questions

Posted: Wed Sep 26, 2007 1:45 pm
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

Posted: Wed Sep 26, 2007 2:40 pm
by evo
1 & 3:
You can start by examining tutorials 5 an 9:
http://irrlicht.sourceforge.net/tut009.html

Posted: Wed Sep 26, 2007 2:52 pm
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.

Posted: Wed Sep 26, 2007 4:11 pm
by hybrid
And 4: Of course, use the IImageLoader and IImageWriter provided in the scene manager.

Posted: Sun Sep 30, 2007 3:01 pm
by Magus_Stragus
Any help with those two functions? An example or something like that. Thanks

Posted: Sun Sep 30, 2007 3:21 pm
by hybrid
Check the VideoDriver API, these are pretty simple to use.