nwge-docs

libnwge_cfn

This is a small library to aid in reading, writing and generating NwgeCFN files.

API

All of the functions in this library are prefixed with cfn and are defined in <nwge/cfn/cfn.h>.

Atlas data

NwgeCFN stores its texture atlas data as an 8 byte-per-pixel alpha image. This means that each pixel is just an alpha value. This is implemented using an 8bpp SDL_Surface with a palette that maps each index to the corresponding color where RGB is white and the alpha value is the index value.