C# 클래스 TressFXLib.Formats.TFXBFormat

TressFX Binary (TFXB) file format implementation. This format is available for import and export. This file format implementation does __NOT__ contain import logic for amd's TFXB file. Unity TressFX uses a slightly modified version, because the data amd's exporter exported couldnt be read into c# easily.
상속: IHairFormat
파일 보기 프로젝트 열기: kennux/TressFXUnity

공개 메소드들

메소드 설명
Export ( BinaryWriter writer, string path, Hair hair ) : void
Import ( BinaryReader reader, string path, Hair hair, HairImportSettings importSettings ) : HairMesh[]

보호된 메소드들

메소드 설명
ReadFloatArray ( BinaryReader reader, int count ) : float[]

Reads an float array from BinaryReader reader.

ReadIntegerArray ( BinaryReader reader, int count ) : int[]

Reads an integer array from BinaryReader reader.

ReadQuaternion ( BinaryReader reader ) : Quaternion

Reads a 4-component vector (Quaternion) from the given BinaryReader reader.

ReadQuaternionArray ( BinaryReader reader, int count ) : Quaternion[]

Reads a 4-component vector (Quaternion) array from the given BinaryReader reader.

ReadVector3 ( BinaryReader reader ) : System.Vector3

Reads a 3-component vector (Vector3) from the given BinaryReader reader.

ReadVector3Array ( BinaryReader reader, int count ) : System.Vector3[]

Reads a 3-component vector (Vector3) array from the given BinaryReader reader.

ReadVector4 ( BinaryReader reader ) : System.Vector4

Reads a 4-component vector (Vector4) from the given BinaryReader reader.

ReadVector4Array ( BinaryReader reader, int count ) : System.Vector4[]

Reads a 4-component vector (Vector4) array from the given BinaryReader reader.

WriteQuaternion ( BinaryWriter writer, Quaternion quaternion ) : void
WriteVector3 ( BinaryWriter writer, System.Vector3 vector ) : void
WriteVector4 ( BinaryWriter writer, System.Vector4 vector ) : void

메소드 상세

Export() 공개 메소드

public Export ( BinaryWriter writer, string path, Hair hair ) : void
writer System.IO.BinaryWriter
path string
hair Hair
리턴 void

Import() 공개 메소드

public Import ( BinaryReader reader, string path, Hair hair, HairImportSettings importSettings ) : HairMesh[]
reader System.IO.BinaryReader
path string
hair Hair
importSettings HairImportSettings
리턴 HairMesh[]

ReadFloatArray() 보호된 정적인 메소드

Reads an float array from BinaryReader reader.
protected static ReadFloatArray ( BinaryReader reader, int count ) : float[]
reader System.IO.BinaryReader Reader.
count int The count of elements to load.
리턴 float[]

ReadIntegerArray() 보호된 정적인 메소드

Reads an integer array from BinaryReader reader.
protected static ReadIntegerArray ( BinaryReader reader, int count ) : int[]
reader System.IO.BinaryReader Reader.
count int The count of elements to load.
리턴 int[]

ReadQuaternion() 보호된 정적인 메소드

Reads a 4-component vector (Quaternion) from the given BinaryReader reader.
protected static ReadQuaternion ( BinaryReader reader ) : Quaternion
reader System.IO.BinaryReader Reader.
리턴 Quaternion

ReadQuaternionArray() 보호된 정적인 메소드

Reads a 4-component vector (Quaternion) array from the given BinaryReader reader.
protected static ReadQuaternionArray ( BinaryReader reader, int count ) : Quaternion[]
reader System.IO.BinaryReader Reader.
count int The count of elements to load.
리턴 Quaternion[]

ReadVector3() 보호된 정적인 메소드

Reads a 3-component vector (Vector3) from the given BinaryReader reader.
protected static ReadVector3 ( BinaryReader reader ) : System.Vector3
reader System.IO.BinaryReader Reader.
리턴 System.Vector3

ReadVector3Array() 보호된 정적인 메소드

Reads a 3-component vector (Vector3) array from the given BinaryReader reader.
protected static ReadVector3Array ( BinaryReader reader, int count ) : System.Vector3[]
reader System.IO.BinaryReader Reader.
count int The count of elements to load.
리턴 System.Vector3[]

ReadVector4() 보호된 정적인 메소드

Reads a 4-component vector (Vector4) from the given BinaryReader reader.
protected static ReadVector4 ( BinaryReader reader ) : System.Vector4
reader System.IO.BinaryReader Reader.
리턴 System.Vector4

ReadVector4Array() 보호된 정적인 메소드

Reads a 4-component vector (Vector4) array from the given BinaryReader reader.
protected static ReadVector4Array ( BinaryReader reader, int count ) : System.Vector4[]
reader System.IO.BinaryReader Reader.
count int The count of elements to load.
리턴 System.Vector4[]

WriteQuaternion() 보호된 정적인 메소드

protected static WriteQuaternion ( BinaryWriter writer, Quaternion quaternion ) : void
writer System.IO.BinaryWriter
quaternion Quaternion
리턴 void

WriteVector3() 보호된 정적인 메소드

protected static WriteVector3 ( BinaryWriter writer, System.Vector3 vector ) : void
writer System.IO.BinaryWriter
vector System.Vector3
리턴 void

WriteVector4() 보호된 정적인 메소드

protected static WriteVector4 ( BinaryWriter writer, System.Vector4 vector ) : void
writer System.IO.BinaryWriter
vector System.Vector4
리턴 void