This is an update of the TGAUTILS.ZIP code for MS-DOS. It was extended to extract common code from the utilities for reading and writing TGA files into a library.
NOTE: PC byte ordering is assumed and no byte swapping is performed for machines with a different byte endianness.
- Truevision TGA file format, version 2.2 [PDF]
- TGA utilities
Use git to clone this repository, then update the vcpkg submodule to bootstrap the dependency process.
git clone https://github.com/LegalizeAdulthood/tgautils
cd tgautils
A CMake preset has been provided to perform the usual CMake steps of configure, build and test.
cmake --workflow --preset default
Places the build outputs in a sibling directory of the source code directory, e.g. up and outside of the source directory.