C# Class VSViewer.VSTools

Parses Joints, Groups, Vertices, Polygons, and Textures.
Show file Open project: MercurialForge/VSViewer

Public Properties

Property Type Description
UnitX System.Vector3
UnitY System.Vector3
UnitZ System.Vector3

Public Methods

Method Description
BitColorConverter ( UInt16 color ) : byte[]
CreateGeometry ( WEP sourceObject ) : Geometry
GetGroups ( EndianBinaryReader reader, int numGroups ) : List
GetJoints ( EndianBinaryReader reader, int numJoints ) : List
GetPolygons ( EndianBinaryReader reader, int numAllPolygons ) : List
GetTextures ( EndianBinaryReader reader, int numOfPalettes ) : List
GetVertices ( EndianBinaryReader reader, List groups ) : List
Rot2Quat ( float radX, float radY, float radZ ) : Quaternion

Private Methods

Method Description
ConstructCharacterPalettes ( EndianBinaryReader reader, List outTextures, int numOfPalettes, int width, int height, byte colorsPerPalette ) : void
ConstructWeaponPalettes ( EndianBinaryReader reader, List outTextures, int numOfPalettes, int width, int height, byte colorsPerPalette ) : void

Method Details

BitColorConverter() public static method

public static BitColorConverter ( UInt16 color ) : byte[]
color System.UInt16
return byte[]

CreateGeometry() public static method

public static CreateGeometry ( WEP sourceObject ) : Geometry
sourceObject VSViewer.FileFormats.WEP
return Geometry

GetGroups() public static method

public static GetGroups ( EndianBinaryReader reader, int numGroups ) : List
reader EndianBinaryReader
numGroups int
return List

GetJoints() public static method

public static GetJoints ( EndianBinaryReader reader, int numJoints ) : List
reader EndianBinaryReader
numJoints int
return List

GetPolygons() public static method

public static GetPolygons ( EndianBinaryReader reader, int numAllPolygons ) : List
reader EndianBinaryReader
numAllPolygons int
return List

GetTextures() public static method

public static GetTextures ( EndianBinaryReader reader, int numOfPalettes ) : List
reader EndianBinaryReader
numOfPalettes int
return List

GetVertices() public static method

public static GetVertices ( EndianBinaryReader reader, List groups ) : List
reader EndianBinaryReader
groups List
return List

Rot2Quat() public static method

public static Rot2Quat ( float radX, float radY, float radZ ) : Quaternion
radX float
radY float
radZ float
return Quaternion

Property Details

UnitX public static property

public static Vector3,System UnitX
return System.Vector3

UnitY public static property

public static Vector3,System UnitY
return System.Vector3

UnitZ public static property

public static Vector3,System UnitZ
return System.Vector3