gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS Misc > .bin conversion for gfx

#115915 - jake2431 - Sat Jan 20, 2007 3:13 am

Okay, so I understand that you aren't supposed to include data and that the graphics should be in .bin format. You are supposed to put them in a data folder as .bin and the devkitPro makefile will convert them and have it display on the screen right? So what is the best way to convert a bmp of png into .bin. The tool used most is gfx2gba right, but doesn't it only conver to .h?

#115930 - Lick - Sat Jan 20, 2007 12:40 pm

I use git! Run it without parameters to see the "usage" message.
_________________
http://licklick.wordpress.com

#115987 - jake2431 - Sat Jan 20, 2007 11:02 pm

Ahh, that Cearn is a great guy. Okay, I will play around with it. Will I still need to use gfx2gba to get the pal file etc. before it will compile?

#115993 - Quirky - Sat Jan 20, 2007 11:41 pm

Quote:
20060814 addendum. Wintermute has been working on making git truly multi-platform; we've also added extra options for transparent color/palette entries and the ability to read the flags from a file. They may need a few more tweaks, but here is where you can find the current binary, source, and a demo project. More official releases will follow later.


Unfortunately the links there seem to be down. Anyone know anything about the multi platform version? I've tried compiling git from source without much luck, it needs some stuff that isn't defined anywhere. The missing BOOL, TRUE I could guess at ;) but COLORREF and RGB? Are these Windows things?.

#115996 - bob_fossil - Sun Jan 21, 2007 12:22 am

Quirky wrote:


Unfortunately the links there seem to be down. Anyone know anything about the multi platform version? I've tried compiling git from source without much luck, it needs some stuff that isn't defined anywhere. The missing BOOL, TRUE I could guess at ;) but COLORREF and RGB? Are these Windows things?.


Yeah, COLORREF ref is a DWORD (unsigned long) value. Windows stores colours in BGR, so a COLORREF is 0x00bbggrr. RGB is a macro which takes normal R,G,B values as parameters and shifts them into a COLORREF, e.g.

COLORREF windows_red = RGB(255,0,0);

Adam

#116054 - Cearn - Sun Jan 21, 2007 1:41 pm

Quirky wrote:

Unfortunately the links there seem to be down. Anyone know anything about the multi platform version? I've tried compiling git from source without much luck, it needs some stuff that isn't defined anywhere. The missing BOOL, TRUE I could guess at ;) but COLORREF and RGB? Are these Windows things?.

I changed the naming scheme a bit and apparently forgot to update the older links. For more up-to-date stuff, go here.

#116375 - Quirky - Wed Jan 24, 2007 11:13 pm

Thanks, that compiled no probs after adding a -I/-L to a downloaded FreeImage.