Undo changes.
This commit is contained in:
parent
1484c667a0
commit
d6f6c1f1d4
@ -22,7 +22,7 @@
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#include "colourfit.h"
|
||||
#include "colourset.h"
|
||||
|
||||
@ -38,21 +38,21 @@ void ColourFit::SetColourSet( ColourSet const* colours, int flags )
|
||||
m_flags = flags;
|
||||
}
|
||||
|
||||
void ColourFit::Compress( Vec3 * start, Vec3 * end )
|
||||
void ColourFit::Compress( void* block )
|
||||
{
|
||||
bool isDxt1 = ( ( m_flags & kDxt1 ) != 0 );
|
||||
if( isDxt1 )
|
||||
{
|
||||
Compress3( start, end );
|
||||
Compress3( block );
|
||||
|
||||
if( !m_colours->IsTransparent() )
|
||||
{
|
||||
Compress4( start, end );
|
||||
Compress4( block );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Compress4( start, end );
|
||||
Compress4( block );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,11 +40,11 @@ public:
|
||||
|
||||
void SetColourSet( ColourSet const* colours, int flags );
|
||||
|
||||
void Compress( Vec3 * start, Vec3 * end );
|
||||
void Compress( void* block );
|
||||
|
||||
protected:
|
||||
virtual bool Compress3( Vec3 * start, Vec3 * end ) = 0;
|
||||
virtual bool Compress4( Vec3 * start, Vec3 * end ) = 0;
|
||||
virtual void Compress3( void* block ) = 0;
|
||||
virtual void Compress4( void* block ) = 0;
|
||||
|
||||
ColourSet const* m_colours;
|
||||
int m_flags;
|
||||
|
Loading…
Reference in New Issue
Block a user