loading image. Binary confusion
Ok, I'm trying write a simple tga loader. It's going to give openGL the information it needs to load the texture.
I understand that it has a header which verifies the contents (ie that it is a tga file).
The next part of the file is variable.
Then you get the the image file itself, which consists of R, G, B, A values. (are the alpha values there too)?
How do I know where this starts and ends.
Also how can I tell if it's 32bit or 16 bit?
Thanks you for your time and effort,
cs_student