#164719 - iainprice - Sat Nov 15, 2008 8:47 pm
I am using loadPCX to get an image into the NDS. I want to put it into a height array for my terrain engine... how do I access the data?
Code: |
typedef struct
{ short height,width; int bpp; unsigned short* palette; union { unsigned char* data8; unsigned short* data16; unsigned int* data32; } image; } sImage, *psImage; |
Code: |
void image8to16(sImage* img) |
Code: |
void image8to16trans(sImage* img, u8 transparentColor) // with this one you can set a palette color as transparent in the 16bit data |