Welcome! Log In Create A New Profile

Advanced

Loading images, libwiigui

Posted by profetylen 
Loading images, libwiigui
April 15, 2009 02:50PM
I can't figure out how this is done.

How is it done?
Re: Loading images, libwiigui
April 15, 2009 10:13PM
What do you mean? Just take a look at the included template. You put the PNG in the images folder, add it to filelist.h, include filelist.h in the source, make a GuiImageData object, and a GuiImage object.
Re: Loading images, libwiigui
April 15, 2009 11:01PM
That's exactly what I mean! Thanks!

(I have taken at least 15 looks in the example, but I don't now C well yet so I didn't understand ut very well).

edit: spelling



Edited 1 time(s). Last edit at 04/15/2009 11:01PM by profetylen.
Re: Loading images, libwiigui
April 20, 2009 09:35PM
The images used are turned into (hexadecimal) buffers in your project when they are compiled. Simply place all of the images you want to use in your project's data folder and the makefile (more specifically bin2o) will do the rest.



Edited 2 time(s). Last edit at 04/20/2009 09:36PM by Arikado.
Re: Loading images, libwiigui
April 20, 2009 09:44PM
Okay! Thanks!


Hm.. am I supposed to edit the libwiigui example to make my program?

Where's the main loop in that example?

and.. what does this crumelure: "->" ?

*** considering buying a C book or something... knowing java doesn't help much...***

edit: added last question



Edited 1 time(s). Last edit at 04/20/2009 10:12PM by profetylen.
Re: Loading images, libwiigui
April 20, 2009 10:11PM
The example uses threading which isnt required, in fact since you know little of C++ i would suggest using aspects from the template to make your app ( the while(1) loop).

If you feel adventurous then try the threading (read it up first)
Re: Loading images, libwiigui
April 22, 2009 06:10PM
mhmm...

is GuiWindow->Draw() the only needed function to draw pictures? Or do I also have to call menu_render()?
I'm a bit confused, cuz I'm a couple of days trying to render, without any success....even with the template pngs it doesn't work;(
Re: Loading images, libwiigui
April 22, 2009 09:06PM
You actually dont need to use a GuiWindow. It helps, but its not needed. To render individual images/buttons use their classes Draw().

Ex: guiImage->Draw();



Edited 1 time(s). Last edit at 04/22/2009 09:07PM by Arikado.
Re: Loading images, libwiigui
April 23, 2009 10:07PM
thx for the hint :)
Re: Loading images, libwiigui
April 25, 2009 05:59PM
menu_render() isnt even a libwiigui function (according to docs) its for the demo
Sorry, only registered users may post in this forum.

Click here to login