Remove errorThreshold.

This commit is contained in:
castano 2008-01-18 23:50:22 +00:00
parent 3383851e44
commit c8ac20ee0f
5 changed files with 2 additions and 7 deletions

View File

@ -364,9 +364,6 @@ void nv::compressBC4(const Image * image, const nvtt::OutputOptions::Private & o
const uint w = image->width();
const uint h = image->height();
// threshold should be from [0 - 1] but may also be higher...
const uint threshold = uint(compressionOptions.errorThreshold * 256);
ColorBlock rgba;
AlphaBlockDXT5 block;

View File

@ -71,10 +71,9 @@ void CompressionOptions::setFormat(Format format)
/// Set compression quality settings.
void CompressionOptions::setQuality(Quality quality, float errorThreshold /*= 0.5f*/)
void CompressionOptions::setQuality(Quality quality)
{
m.quality = quality;
m.errorThreshold = errorThreshold;
}

View File

@ -36,7 +36,6 @@ namespace nvtt
Format format;
Quality quality;
float errorThreshold; // deprecated.
nv::Vector4 colorWeight;

0
src/nvtt/nvtt.cs Executable file → Normal file
View File

View File

@ -96,7 +96,7 @@ namespace nvtt
NVTT_API void reset();
NVTT_API void setFormat(Format format);
NVTT_API void setQuality(Quality quality, float errorThreshold = 0.5f);
NVTT_API void setQuality(Quality quality);
NVTT_API void setColorWeights(float red, float green, float blue, float alpha = 1.0f);
NVTT_DEPRECATED void enableHardwareCompression(bool enable);