Edited wiki page ApiDocumentation through web user interface.

This commit is contained in:
castano@gmail.com 2010-09-07 18:16:25 +00:00
parent ffd0c214df
commit 1fb02d935a

View File

@ -500,6 +500,18 @@ compressionOptions.setPixelType(PixelType_Float);
compressionOptions.setPixelFormat(32, 32, 32, 32);
}}}
By default pixel rows of unaligned pixel formats are aligned to the next byte boundary. However, it's possible to change that behavior using the following function:
{{{
void CompressionOptions:: setPitchAlignment(int pitchAlignment);
}}}
Where `pitchAlignment` must be a positive number multiple of 8. Note, that previous versions of NVTT incorrectly aligned the pitch to 32 bits by default, so obtain the same behavior now you have to explicitly set the alignment as follows:
{{{
compressionOptions.setPitchAlignment(32);
}}}
=== Quantization ===