Edited wiki page through web user interface.
This commit is contained in:
parent
5d5b6d99b6
commit
0837660851
|
@ -30,15 +30,15 @@ It takes the texture defined by `InputOptions`, compresses it according to the `
|
|||
Here's a very simple usage example:
|
||||
|
||||
{{{
|
||||
InputOptions inputOptions;
|
||||
inputOptions.setTextureLayout(TextureType_2D, w, h);
|
||||
nvtt::InputOptions inputOptions;
|
||||
inputOptions.setTextureLayout(nvtt::TextureType_2D, w, h);
|
||||
inputOptions.setMipmapData(data, w, h);
|
||||
|
||||
OutputOptions outputOptions;
|
||||
nvtt::OutputOptions outputOptions;
|
||||
outputOptions.setFileName("output.dds");
|
||||
|
||||
CompressionOptions compressionOptions;
|
||||
compressionOptions.setFormat(Format_DXT1);
|
||||
nvtt::CompressionOptions compressionOptions;
|
||||
compressionOptions.setFormat(nvtt::Format_DXT1);
|
||||
|
||||
nvtt::compress(inputOptions, outputOptions, compressionOptions);
|
||||
}}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user