nvtt: nvtt::OutputHandler Struct Reference

nvtt

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

Inheritable interface for outputting data. More...

`#include <nvtt.h>`

## Public Member Functions

virtual | ~OutputHandler ()
| Destructor.
virtual void | beginImage (int size, int width, int height, int depth, int face, int miplevel)=0
| Indicate the start of a new compressed image that's part of the final texture.
virtual bool | writeData (const void *data, int size)=0
| Output data. Compressed data is output as soon as it's generated to minimize memory allocations.
virtual void | endImage ()=0
| Indicate the end of the compressed image. (New in NVTT 2.1)

## Detailed Description

Inheritable interface for outputting data.

For instance, one can inherit from this to write to a stream, a buffer in memory, or a custom data structure.

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

- nvtt/nvtt.h