C library to convert any image into `.paa` texture file
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1.5 KiB

libpaa

libpaa is a small library to convert images into ArmA's (Bohemia Interactive) .paa texture format. This library uses DevIL image manipulation library internally.

Targets

  1. libpaa.so shared library with the public API defined in paa.h
  2. paac CLI to convert any image into .paa texture

Requirements

Features

This library can convert any image format which DevIL supports into a .paa texture file. However only the first and active image is used. Cubemaps are not supported.

It is not possible to convert .paa texture back into an image, yet.

  • Supported PAA types are DXT1 and DXT5.
  • MipMaps are automatically generated.
  • The first MipMap will be LZO compressed.

Please note that DDS graphics have a lossy compression!

API

Taken from header file paa.h:

int ConvertTexture(const char* InFile, const char* OutFile);

  • InFile path to the input image
  • OutFile path to the output texture (with .paa suffix)

Returns

  • bool (from stdbool.h) true on success, false on failure

Build

This project uses CMake:

mkdir cmake-build
cd cmake-build/
cmake ..
make

License

GPLv3