C# Class AoMBrgEditor.DdtFile

Show file Open project: Ryder25/Age-of-Mythology Class Usage Examples

Public Properties

Property Type Description
Height int
Width int
alphaBits byte
imageData byte[]
mipMap byte
texelFormat DdtTexelFormat
type DdtType

Public Methods

Method Description
DdtFile ( System fileStream ) : System
Get32BitUncompressed ( ) : byte[]
GetTexelFormat ( ) : string

Private Methods

Method Description
Convert444ToRGB ( byte data, int startData, System.Pixel palette ) : void
Convert555ToRGB ( byte data, int startData, System.Pixel palette ) : void
Convert565ToRGB ( byte data, int startData, System.Pixel palette ) : void
ConvertToRGB ( byte data, int startData, System.Pixel palette, int rOff, int rCnt, int gOff, int gCnt, int bOff, int bCnt, int stride ) : void

Method Details

DdtFile() public method

public DdtFile ( System fileStream ) : System
fileStream System
return System

Get32BitUncompressed() public method

public Get32BitUncompressed ( ) : byte[]
return byte[]

GetTexelFormat() public method

public GetTexelFormat ( ) : string
return string

Property Details

Height public property

public int Height
return int

Width public property

public int Width
return int

alphaBits public property

public byte alphaBits
return byte

imageData public property

public byte[] imageData
return byte[]

mipMap public property

public byte mipMap
return byte

texelFormat public property

public DdtTexelFormat texelFormat
return DdtTexelFormat

type public property

public DdtType type
return DdtType