Edited wiki page ApiDocumentation through web user interface.

This commit is contained in:
castano@gmail.com 2013-09-12 19:37:46 +00:00
parent fbbb75d8e6
commit b08cde25fb

View File

@ -547,7 +547,7 @@ The output handler is an interface that defines these three methods:
{{{
virtual void beginImage(int size, int width, int height, int depth, int face, int miplevel) = 0;
virtual bool writeData(const void * data, int size) = 0;
virtual void endImage() = 0;
virtual void endImage() = 0; // NVTT 2.1
}}}
Applications need to implement this interface in order to receive compressed textures from the compressor. The `writeData` method is first called with the contents of the texture header, and after that, the compressor calls `beginImage` and `endImage` to delimitate the data that corresponds to each image of the texture. You can use these two methods for example to allocate and deallocate temporary memory to hold the data