nvtt
|
Output Options. More...
#include <nvtt.h>
Public Member Functions | |
NVTT_API void | reset () |
Set default options. | |
NVTT_API void | setFileName (const char *fileName) |
NVTT_API void | setFileHandle (void *fp) |
Set output file handle. | |
NVTT_API void | setOutputHandler (OutputHandler *outputHandler) |
Set output handler. | |
NVTT_API void | setErrorHandler (ErrorHandler *errorHandler) |
Set error handler. | |
NVTT_API void | setOutputHeader (bool outputHeader) |
Set output header. Defaults to true. | |
NVTT_API void | setContainer (Container container) |
Set container. Defaults to Container_DDS. | |
NVTT_API void | setUserVersion (int version) |
NVTT_API void | setSrgbFlag (bool b) |
Output Options.
This class holds pointers to the interfaces that are used to report the output of the compressor to the app, as well as the container type and options specific to the container.
NVTT_API void nvtt::OutputOptions::setFileName | ( | const char * | fileName | ) |
Set output file name. This uses the same character encoding as the filename
argument of fopen()
.
NVTT_API void nvtt::OutputOptions::setSrgbFlag | ( | bool | b | ) |
Set the sRGB flag, indicating whether this file stores data with an sRGB transfer function (true) or a linear transfer function (false). Defaults to false.
NVTT_API void nvtt::OutputOptions::setUserVersion | ( | int | version | ) |
Set user version.