Grit and its GUI version Wingrit are my image converters for the GBA (and NDS I guess). They can do most of the simple things like reading an image (pretty much any type of bitmap thanks to FreeImage) and converting it to binary data of various bitdepths which can be directly put into VRAM, but also more complicated matters such as tiling and metatiling (for 1D object mapping for example), making a tilemap along with a reduced tileset (or using an external tileset), popular map layouts, and compression compatible with the GBA's BIOS routines. The capability for an NDS alphabit has been added recently as well. Output can be C/asm arrays, raw binary, GBFS, and a RIFF-based format called GRF.
Not good enough? Well, the source code is available too, so you're free to modify it. The code should be platform independent right now, or at least very nearly so; the catch being that you might have add or remove some type definitions and maybe create your own makefile for compilation.
Documentation
grit-readme.txt, wingrit-readme.txt, Manuals,
Grit Downloads
Current version: 0.8.4
- 20100211: binary: grit-0.8.4.zip
- 20100211: source: grit-src-0.8.4.zip
- 20100211: demo project: grit-demo-0.8.4.zip
Previous versions
- 20081207: binary: grit-0.8.3.zip
- 20081207: source: grit-src-0.8.3.zip
- 20081207: demo project: grit-demo-0.8.3.zip
- 20081129: binary: grit-0.8.2.zip
- 20081129: source: grit-src-0.8.2.zip
- 20081129: demo project: grit-demo-0.8.2.zip
- 20080512: binary: grit-0.8.1.zip
- 20080512: source: grit-src-0.8.1.zip
- 20080512: demo project: grit-demo-0.8.1.zip
- 20080404: binary: grit-0.8.zip
- 20080404: source: grit-src-0.8.zip
- 20080404: demo project: grit-demo-0.8.zip
[...] Grit (previous GIT which stands of "GBA Image Transmogrifier") is an image conversion utility for the GBA and Nintendo DS. [...]
To make Grit compile with GCC 4.4, I had to make the following changes:
srcgrit/cli.cpp, line 11, add #include
srcgrit/grit_main.cpp, line 793, add a cast to first argument:
args.insert((strvec::iterator)&args[ii], files.begin(), files.end());
has anyone compiled grit on linux?
Because I'm getting this error when I try to compile on linux:
srcgrit/grit_main.cpp: 793: error: no matching function for call to 'std::vector<char*,std::allocator >::insert(char**, __gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator > >, __gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator > > >)
/usr/include/c++/4.3/bits/vector.tcc:94: note: candidates are: __gnu_cxx::__normal_iterator<typename std::_Vector_base::__normal_iterator<typename std::_Vector_base > std::vector::insert(__gnu_cxx::normal_iterator<typename std::_Vector_base::_Tp_alloc_type::pointer, std::vector >, const_Tp&) [with _Tp = char*, _Alloc = std::allocator]
C++ libs related?
I'm using gcc 4.3 but carl's fix mentioned above works.
Should've tried that, sorry!
[...] [ Download [...]
Can't download the binary as it cannot be found... :(
Seems I misnamed the file, sorry. The link should work now.
Leave a comment
Powered by WordPress