Fix weighted cluster fit.

Set metric before color sets.
This commit is contained in:
castano
2008-02-01 19:48:12 +00:00
parent 77168bb40b
commit b7f3ce664f
8 changed files with 55 additions and 30 deletions

View File

@ -37,12 +37,14 @@ namespace squish {
class FastClusterFit : public ColourFit
{
public:
FastClusterFit( ColourSet const* colours, int flags );
FastClusterFit();
void setMetric(float r, float g, float b);
float bestError() const;
void SetColourSet( ColourSet const* colours, int flags );
static void doPrecomputation();
void SetMetric(float r, float g, float b);
float GetBestError() const;
static void DoPrecomputation();
// Make them public
virtual void Compress3( void* block );