C# Класс Ohana3DS_Transfigured.Ohana.Models.MBN

Показать файл Открыть проект

Открытые методы

Метод Описание
load ( string fileName ) : RenderBase.OModelGroup

Приватные методы

Метод Описание
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.

Описание методов

load() публичный статический Метод

public static load ( string fileName ) : RenderBase.OModelGroup
fileName string
Результат RenderBase.OModelGroup