PDA

View Full Version : OT: RGBA in TGA



marcus256
03-26-2002, 10:33 PM
I have read several TGA file format specifications, but I have not found how the alpha-channel is stored in a TGA file. All the format says is how many bits are used for the alpha channel, but not where these bits are stored.

Red, green and blue are stored as BGR in a TGA file, so my simple question is: are the additional alpha bits stored as BGRA or ABGR??



[This message has been edited by marcus256 (edited 03-26-2002).]

Morglum
03-26-2002, 11:04 PM
According to the following thread, it's BGRA.
http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/002000.html