Raptor Animated Graphics

From ModdingWiki
Jump to navigation Jump to search
Raptor Animated Graphics
Raptor Animated Graphics.gif
Format typeImage
HardwareVGA
Colour depth8-bit (VGA)
Minimum size (pixels)320×200
Maximum size (pixels)320×200
PaletteShared
Plane count1
Transparent pixels?No
Hitmap pixels?No
Games

File Format

Files in Raptor Animated Graphics format are single frames which collectively make up a short animated sequence. Each AGX entry in the FAT table makes up a single frame. Each frame in an AGX sequence is drawn on top of the previous frame. The frames are found sequentially in the FAT table, with the same filename, but at different offsets.

Each file consists of several blocks of data, which are drawn into a 64000-byte (320x200) all-black buffer to create the final frame image.

Note: The very first frame of a sequence has an extra byte at the beginning.

Block Format

Each block entry consists of the following values:

Data type Name Description
UINT32LE moreBlocks 0 or 1, indicating if there are more blocks left in the frame
UINT16LE destOffset The offset in the destination buffer to write the block bytes
UINT16LE srcBytes Number of bytes in the block
UINT8 data[srcBytes] Block bytes as 8bpp raw VGA data