#166322 - semihce - Wed Feb 04, 2009 7:16 pm
Hi,
I am new on GBA programming and i want to convert an image to header files. I cann't use ready programs such as gfx2gba, i have to do it by myself dynamically.
In my program, i get the image from user, and convert each pixels of this image to hexal like this,
r + (g << 5) + (b << 10)
Is this true?
What is more, after converting each pixel, i also have to generate two other arrays for palette and map. How can i do this? I dont know how can i construct map and palette arrays.
Please help me..
I am new on GBA programming and i want to convert an image to header files. I cann't use ready programs such as gfx2gba, i have to do it by myself dynamically.
In my program, i get the image from user, and convert each pixels of this image to hexal like this,
r + (g << 5) + (b << 10)
Is this true?
What is more, after converting each pixel, i also have to generate two other arrays for palette and map. How can i do this? I dont know how can i construct map and palette arrays.
Please help me..