Edited wiki page ApiDocumentation through web user interface.

This commit is contained in:
castano@gmail.com 2011-09-13 17:01:39 +00:00
parent 6e3504dcf2
commit 287cb1ab4a

View File

@ -506,10 +506,10 @@ By default pixel rows of unaligned pixel formats are aligned to the next byte bo
void CompressionOptions:: setPitchAlignment(int pitchAlignment);
}}}
Where `pitchAlignment` must be a positive number and a power of two, and is given in bits. Note, that previous versions of NVTT incorrectly aligned the pitch to 32 bits by default, so obtain the same behavior you now have to explicitly set the alignment as follows:
Where `pitchAlignment` must be a positive number and a power of two, and is given in bytes. By default the pitch alignment is set to 1. Note, that previous versions of NVTT incorrectly aligned the pitch to 4 bytes by default. So, to obtain the same behavior you now have to explicitly set the alignment as follows:
{{{
compressionOptions.setPitchAlignment(32);
compressionOptions.setPitchAlignment(4);
}}}