by LeeLoo » Jan 13, 2002 @ 12:17am
Assume I simply want to load an image in a buffer called a, I used to do that in EasyCE 1.5 with the following line :
tgaload(TEXT("image.tga"), 240, 320, a);
which works perfectly in VC++ but doesn't work any more with eVC++ and EasyCE 1.6, because :
TEXT("") returns an unsigned short* whereas a char* is required... Indeed, the prototype of the funtion in EasyCE 1.6 is :
bool tgaload( char* a_File, int w, int h, PIXEL* dest )
Question is : how can I load an image with EasyCE 1.6 ?