Page 1 of 1

adding .tga files as resource for EastCE use...

PostPosted: May 2, 2002 @ 5:26am
by brendan

PostPosted: May 3, 2002 @ 6:27pm
by cryo

PostPosted: May 4, 2002 @ 12:49am
by brendan

PostPosted: May 4, 2002 @ 9:16am
by cryo
don't know, you will have to check the TGA file format. But i compared the first 18 bytes of both a compressed and an uncompressed 16bit TGA file, and they are the same except for byte 2:

compressed TGA header:
00 00 0A 00 00 00 00 00 00 00 00 00 5F 00 9F 01 10 00

uncompressed:
00 00 02 00 00 00 00 00 00 00 00 00 5F 00 9F 01 10 00

of course, form the same image.

cryo

maybe

PostPosted: May 6, 2002 @ 1:20am
by brendan
I've used the code, and it sort of works.... I get the image upside down on the screen, with the colors distorted..... wierd.... what are you ment to send to the function, I assume it's the name of the file?, or the resource handle, but these fails, it expects an unsigned short?

can you give me a simple peice of code to call the function :)

-thanks, brendan

then all I have to do is somehow ungip the data......... fun

PostPosted: May 6, 2002 @ 3:35pm
by cryo

PostPosted: May 7, 2002 @ 7:37am
by brendan