C# Class HaloMap.DDSFunctions.Swizzler

Swizzles an array of pixels.
Exibir arquivo Open project: troymac1ure/Entity Class Usage Examples

Public Methods

Method Description
Swizzle ( byte raw, int width, int height, int depth, int bitCount, bool deswizzle ) : byte[]

The swizzle.

Swizzle ( byte raw, int offset, int width, int height, int depth, int bitCount, bool deswizzle ) : byte[]

The swizzle.

Private Methods

Method Description
Swizzle ( int x, int y, int z, MaskSet masks ) : int

The swizzle.

SwizzleAxis ( int val, int mask ) : int

The swizzle axis.

Method Details

Swizzle() public static method

The swizzle.
public static Swizzle ( byte raw, int width, int height, int depth, int bitCount, bool deswizzle ) : byte[]
raw byte The raw.
width int The width.
height int The height.
depth int The depth.
bitCount int The bit count.
deswizzle bool The deswizzle.
return byte[]

Swizzle() public static method

The swizzle.
public static Swizzle ( byte raw, int offset, int width, int height, int depth, int bitCount, bool deswizzle ) : byte[]
raw byte The raw.
offset int The offset.
width int The width.
height int The height.
depth int The depth.
bitCount int The bit count.
deswizzle bool The deswizzle.
return byte[]