nvtt: nvtt::OutputOptions Struct Reference

nvtt

Loading...
Searching...
No Matches
Public Member Functions | List of all members
nvtt::OutputOptions Struct Reference

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)

## Detailed Description

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.

## Member Function Documentation

## ◆ setFileName()

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()`.

## ◆ setSrgbFlag()

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.

See also
  Container

## ◆ setUserVersion()

NVTT_API void nvtt::OutputOptions::setUserVersion | ( | int | version | ) |

Set user version.

See also
  Container

The documentation for this struct was generated from the following file:

- nvtt/nvtt.h