Ok I'm following along but how do I view the tga files that this program produces? Windows can't open them.
You can replace the tga with bmp which is natively supported by Windows and not difficult to implement (if you prefer to use a C library look for stb libs).
Irfanview?
You can replace the tga with bmp which is natively supported by Windows and not difficult to implement (if you prefer to use a C library look for stb libs).