|
|
@ -121,6 +121,15 @@ namespace nvtt
|
|
|
|
Quality_Highest,
|
|
|
|
Quality_Highest,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// DXT decoder.
|
|
|
|
|
|
|
|
enum Decoder
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Decoder_D3D10,
|
|
|
|
|
|
|
|
Decoder_D3D9,
|
|
|
|
|
|
|
|
Decoder_NV5x,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Compression options. This class describes the desired compression format and other compression settings.
|
|
|
|
/// Compression options. This class describes the desired compression format and other compression settings.
|
|
|
|
struct CompressionOptions
|
|
|
|
struct CompressionOptions
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -148,6 +157,8 @@ namespace nvtt
|
|
|
|
|
|
|
|
|
|
|
|
NVTT_API void setQuantization(bool colorDithering, bool alphaDithering, bool binaryAlpha, int alphaThreshold = 127);
|
|
|
|
NVTT_API void setQuantization(bool colorDithering, bool alphaDithering, bool binaryAlpha, int alphaThreshold = 127);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NVTT_API void setTargetDecoder(Decoder decoder);
|
|
|
|
|
|
|
|
|
|
|
|
// Translate to and from D3D formats.
|
|
|
|
// Translate to and from D3D formats.
|
|
|
|
NVTT_API unsigned int d3d9Format() const;
|
|
|
|
NVTT_API unsigned int d3d9Format() const;
|
|
|
|
//NVTT_API bool setD3D9Format(unsigned int format);
|
|
|
|
//NVTT_API bool setD3D9Format(unsigned int format);
|
|
|
@ -377,14 +388,6 @@ namespace nvtt
|
|
|
|
typedef Compressor Context;
|
|
|
|
typedef Compressor Context;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// DXT decoder.
|
|
|
|
|
|
|
|
enum Decoder
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Decoder_D3D10,
|
|
|
|
|
|
|
|
Decoder_D3D9,
|
|
|
|
|
|
|
|
Decoder_NV5x,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// A texture mipmap.
|
|
|
|
/// A texture mipmap.
|
|
|
|
struct TexImage
|
|
|
|
struct TexImage
|
|
|
|
{
|
|
|
|
{
|
|
|
|