C# Class Ohana3DS_Transfigured.Ohana.Models.MBN

显示文件 Open project: Quibilia/Ohana3DS-Transfigured

Public Methods

Method Description
load ( string fileName ) : RenderBase.OModelGroup

Private Methods

Method Description
align ( BinaryReader input ) : void

Aligns the reader to skip the 0xffff padding that .mbn files uses on the stream section. It will align to the nearest 32 bytes boundary.

alignWord ( BinaryReader input ) : void

Aligns the reader to skip the 0xffff padding that .mbn files uses on the stream section. It will align to the nearest 32-bits Word.

getVector2 ( byte buffer, int pos, vtxAttributeQuantization q, float scale ) : RenderBase.OVector2

Reads a quantized Vector2 from the Vertex Stream. It is usually used to store Texture Coordinates.

getVector3 ( byte buffer, int pos, vtxAttributeQuantization q, float scale ) : RenderBase.OVector3

Reads a quantized Vector3 from the Vertex Stream. It is usually used to store Geometry Position and Normal.

getVector4 ( byte buffer, int pos, vtxAttributeQuantization q, float scale ) : RenderBase.OVector4

Reads a quantized Vector4 from the Vertex Stream. It is usually used to store Vertex Color.

getVtxDescriptor ( BinaryReader input ) : vtxEntry

Reads a Vertex Descriptor from the mbn file.

Method Details

load() public static method

public static load ( string fileName ) : RenderBase.OModelGroup
fileName string
return RenderBase.OModelGroup