C# 클래스 Ohana3DS_Transfigured.Ohana.Models.BCH

파일 보기 프로젝트 열기: Quibilia/Ohana3DS-Transfigured

공개 메소드들

메소드 설명
load ( MemoryStream data ) : RenderBase.OModelGroup

Loads a BCH file. Note that BCH must start at offset 0x0 (don't try using it for BCHs inside containers).

load ( string fileName ) : RenderBase.OModelGroup

Loads a BCH file.

비공개 메소드들

메소드 설명
getAnimationKeyFrame ( BinaryReader input, RenderBase frame ) : void

Gets an Animation Key frame from the BCH file. The Reader position must be set to the beggining of the Key Frame Data.

getAnimationKeyFrameBool ( BinaryReader input ) : RenderBase.OAnimationKeyFrameGroup

Gets an Animation Key frame from the BCH file. The Reader position must be set to the beggining of the Key Frame Data. This function should be ONLY used with Bool values, since they're stored in a different way.

getMetaData ( BinaryReader input ) : List

Gets Meta Data from the BCH Stream.

getVector ( BinaryReader input, PICACommand format ) : RenderBase.OVector4

Gets a Vector4 from Data. Number of used elements of the Vector4 will depend on the vector type.

peek ( BinaryReader input ) : uint

Reads a UInt without advancing the position on the Stream.

readString ( BinaryReader input ) : string

Reads a string if offset is different of 0. Position advances 4 bytes only.

scaleSkeleton ( List skeleton, int index, int parentIndex ) : void

Scales all child bones of the current bone.

transformSkeleton ( List skeleton, int index, RenderBase &target ) : void

Transforms a Skeleton from relative to absolute positions.

메소드 상세

load() 공개 정적인 메소드

Loads a BCH file. Note that BCH must start at offset 0x0 (don't try using it for BCHs inside containers).
public static load ( MemoryStream data ) : RenderBase.OModelGroup
data System.IO.MemoryStream Memory Stream of the BCH file. The Stream will not be usable after
리턴 RenderBase.OModelGroup

load() 공개 정적인 메소드

Loads a BCH file.
public static load ( string fileName ) : RenderBase.OModelGroup
fileName string File Name of the BCH file
리턴 RenderBase.OModelGroup