Welcome! Log In Create A New Profile

Advanced

load images without converting them using WiiBuilder [GRRLIB]

Posted by SteelSLasher 
load images without converting them using WiiBuilder [GRRLIB]
April 13, 2009 03:18PM
I dont really want to use WiiBuilder to convert my pngs so how can i do it without having to do that, BTW i have put the png converting code snippet into my makefile -> no apparent effect
Re: load images without converting them using WiiBuilder [GRRLIB]
April 13, 2009 07:06PM
I'm sad you don't want to use my tool :(

I guess this the code you are talking about:
#---------------------------------------------------------------------------------
# This rule links in binary data with the .png extension
#---------------------------------------------------------------------------------
%.png.o	:	%.png
#---------------------------------------------------------------------------------
	@echo $(notdir $<)
	$(bin2o)
To use it, don't forget to put you're png's in the data folder.
Re: load images without converting them using WiiBuilder [GRRLIB]
April 13, 2009 08:37PM
not saying your tools bad or anything, in fact its very good but i feel it complicates using images in homebrew apps since i am used to not having to create header files for my images.

so do i do
#include < imagefile >

or does it include libfat



Edited 1 time(s). Last edit at 04/13/2009 08:38PM by SteelSLasher.
Re: load images without converting them using WiiBuilder [GRRLIB]
April 13, 2009 09:47PM
If you use the Makefile code, the .h file will be generated in the build folder. If your image was named my_image.png the header file will be my_image_png.h

So just included that file.

size is: my_image_png_size
data is: my_image_png[]
Re: load images without converting them using WiiBuilder [GRRLIB]
April 15, 2009 12:19PM
thanks for your help, just out of interest was this info available on a wiki site or some tutorial
Re: load images without converting them using WiiBuilder [GRRLIB]
April 15, 2009 04:07PM
I don't known, I found that out two weeks ago by checking the sources of a project.
Re: load images without converting them using WiiBuilder [GRRLIB]
April 15, 2009 06:27PM
oh ok, thats a shame since i would prefer to use actual docs and tuts. Still, source code still helps
Sorry, only registered users may post in this forum.

Click here to login