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.
![]() |
3 years ago | |
---|---|---|
bindings/php/runtime-package | 3 years ago | |
cmake/Modules | 3 years ago | |
include | 3 years ago | |
src | 3 years ago | |
.gitignore | 3 years ago | |
CMakeLists.txt | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago |
README.md
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
libpaa.so
shared library with the public API defined inpaa.h
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
andDXT5
. - 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 imageOutFile
path to the output texture (with.paa
suffix)
Returns
bool
(fromstdbool.h
) true on success, false on failure
Build
This project uses CMake:
mkdir cmake-build
cd cmake-build/
cmake ..
make