Any Ideas On Resource Files?


Monkey

Still Fresh
Joined
Nov 11, 2005
Messages
13
Age
40
Location
Belfast, Norn Iron
Website
Visit site
Does anyone know if there is an easy way to include my bmp files in my gpe file, like the way the gp32 stored images in the header file using the convertor, or am I going to have to write my own convertor to do the job for me :unsure:
 
Monkey posted on Feb 15 2006 at 02:57 AM said:
Does anyone know if there is an easy way to include my bmp files in my gpe file, like the way the gp32 stored images in the header file using the convertor, or am I going to have to write my own convertor to do the job for me :unsure:

Don't know about the gp32 converter, but what's wrong with using xpm?
http://www.w3.org/People/danield/xpm_story.html
This will make it easy to in the testing phase have external files with pictures, and later just compile them.

P.
 
Last edited by a moderator:
I tried using the gp32 image convertor, no joy, it doesn't like my 16 bit images and just gives me a empty header file with this :

Code:
/////////////////////////////////////////
//
// Header file for GP32
//
// convertion of blazing_solo_logo.bmp file :
// Width     = 320
// Heigth    = 240
// GP32 Mode = 16 Bits per Pixel
//
// with GP32Converter coded by Edorul :
//    http://www.ifrance.com/edorul/
//    edorul@free.fr
//
/////////////////////////////////////////

#define blazing_solo_logo_width      320
#define blazing_solo_logo_height     240

Using bin2c I get something like this :

Code:
unsigned char Logo[] = {
0x42,0x4D,0x38,0x58,0x02,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x40,0x01,0x00,0x00,0xF0,0x00,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x0B,0x00,0x00,0x12,0x0B,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, ... etc

I'm completely lost on how I would change this into an image on screen, is there a quick and easy way to convert this data to a surface?
 
Back
Top