Answer the question
In order to leave comments, you need to log in
How to read tga file?
I use this code
FILE *f;
fopen_s(&f, "Screen.tga", "r");
char* buffer =new char[10240000];
if (f != NULL)
{
int countfile = 0;
while ((buffer[countfile++] = getc(f)) != EOF)
;
fclose(f);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question