2020-08-24 05:26:58 +00:00
|
|
|
# NVIDIA Texture Tools [![Actions Status](https://github.com/castano/nvidia-texture-tools/workflows/build/badge.svg)](https://github.com/castano/nvidia-texture-tools/actions) ![MIT](https://img.shields.io/badge/license-MIT-blue.svg) [![GitHub](https://img.shields.io/badge/repo-github-green.svg)](https://github.com/castano/nvidia-texture-tools)
|
2016-08-16 19:43:17 +00:00
|
|
|
|
|
|
|
The NVIDIA Texture Tools is a collection of image processing and texture
|
|
|
|
manipulation tools, designed to be integrated in game tools and asset
|
2016-09-19 19:53:33 +00:00
|
|
|
processing pipelines.
|
2016-08-16 19:43:17 +00:00
|
|
|
|
|
|
|
The primary features of the library are mipmap and normal map generation, format
|
2018-02-06 02:55:07 +00:00
|
|
|
conversion, and DXT compression.
|
2016-08-16 19:43:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
### How to build (Windows)
|
|
|
|
|
2020-08-23 20:57:17 +00:00
|
|
|
Use the provided Visual Studio 2017 solution `project/vc2017/thekla.sln`.
|
2016-08-16 19:43:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
### How to build (Linux/OSX)
|
|
|
|
|
|
|
|
Use [cmake](http://www.cmake.org/) and the provided configure script:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ ./configure
|
|
|
|
$ make
|
|
|
|
$ sudo make install
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Using NVIDIA Texture Tools
|
|
|
|
|
|
|
|
To use the NVIDIA Texture Tools in your own applications you just have to
|
|
|
|
include the following header file:
|
|
|
|
|
2020-08-23 20:54:25 +00:00
|
|
|
[src/nvtt/nvtt.h](https://github.com/castano/nvidia-texture-tools/blob/master/src/nvtt/nvtt.h)
|
2016-08-16 19:43:17 +00:00
|
|
|
|
|
|
|
And include the nvtt library in your projects.
|
|
|
|
|
|
|
|
The following file contains a simple example that shows how to use the library:
|
|
|
|
|
2020-08-23 20:54:25 +00:00
|
|
|
[src/nvtt/tools/compress.cpp](https://github.com/castano/nvidia-texture-tools/blob/master/src/nvtt/tools/compress.cpp)
|
2016-08-16 19:43:17 +00:00
|
|
|
|
|
|
|
Detailed documentation of the API can be found at:
|
|
|
|
|
2018-02-06 02:55:07 +00:00
|
|
|
https://github.com/castano/nvidia-texture-tools/wiki/ApiDocumentation
|
2016-08-16 19:43:17 +00:00
|
|
|
|