C# Class Squish.Alpha

ファイルを表示 Open project: Nihlus/libwarcraft Class Usage Examples

Public Methods

Method Description
CompressAlphaDxt3 ( byte rgba, byte target, int targetOffset, int mask ) : void
CompressAlphaDxt5 ( byte rgba, int mask, byte target, int targetOffset ) : void
DecompressAlphaDxt3 ( byte block, int blockOffset, byte target, int targetOffset ) : void
DecompressAlphaDxt5 ( byte block, int blockOffset, byte target, int targetOffset ) : void

Private Methods

Method Description
FitCodes ( byte rgba, int mask, byte codes, byte &indices ) : int
FixRange ( int &min, int &max, int steps ) : void
FloatToInt ( float a, int limit ) : int
WriteAlphaBlock ( int alpha0, int alpha1, byte indices, byte target, int targetOffset ) : void
WriteAlphaBlock5 ( int alpha0, int alpha1, byte indices, byte target, int targetOffset ) : void
WriteAlphaBlock7 ( int alpha0, int alpha1, byte indices, byte target, int targetOffset ) : void

Method Details

CompressAlphaDxt3() public static method

public static CompressAlphaDxt3 ( byte rgba, byte target, int targetOffset, int mask ) : void
rgba byte
target byte
targetOffset int
mask int
return void

CompressAlphaDxt5() public static method

public static CompressAlphaDxt5 ( byte rgba, int mask, byte target, int targetOffset ) : void
rgba byte
mask int
target byte
targetOffset int
return void

DecompressAlphaDxt3() public static method

public static DecompressAlphaDxt3 ( byte block, int blockOffset, byte target, int targetOffset ) : void
block byte
blockOffset int
target byte
targetOffset int
return void

DecompressAlphaDxt5() public static method

public static DecompressAlphaDxt5 ( byte block, int blockOffset, byte target, int targetOffset ) : void
block byte
blockOffset int
target byte
targetOffset int
return void