C# 클래스 Protogame.ModelSerializerVersion4

Serializes and deserializes IModel for storage in a binary format.
상속: IModelSerializer
파일 보기 프로젝트 열기: RedpointGames/Protogame 1 사용 예제들

공개 메소드들

메소드 설명
Deserialize ( string name, byte data ) : Model

Deserialize the specified byte array into a concrete Model implementation.

ModelSerializerVersion4 ( IModelRenderConfiguration modelRenderConfigurations, IRenderBatcher renderBatcher ) : System
Serialize ( IModel model ) : byte[]

Serializes the specified IModel into a byte array.

비공개 메소드들

메소드 설명
DeserializeAnimations ( BinaryReader reader ) : IEnumerable

Deserializes a collection of animations from binary data.

DeserializeBoneHierarchy ( BinaryReader reader ) : IModelBone

Deserializes the bone hierarchy of a model from binary data.

DeserializeByte4 ( BinaryReader reader ) : Byte4

Deserializes a Byte4 from binary data.

DeserializeColor ( BinaryReader reader ) : Color

Deserializes a color from binary data.

DeserializeFloatQuaternionDictionary ( BinaryReader reader ) : Quaternion>.IDictionary

Deserializes a float-quaternion dictionary from binary data.

DeserializeFloatVector3Dictionary ( BinaryReader reader ) : Vector3>.IDictionary

Deserializes a float-vector3 dictionary from binary data.

DeserializeIndices ( BinaryReader reader ) : int[]

Deserializes a list of model indices from binary data.

DeserializeMaterial ( BinaryReader reader ) : IMaterial

Deserializes a material from binary data.

DeserializeMaterialTexture ( BinaryReader reader ) : IMaterialTexture

Deserializes a material texture from binary data.

DeserializeMatrix ( BinaryReader reader ) : Matrix

Deserializes a Matrix from binary data.

DeserializeModel ( string name, BinaryReader reader ) : Model

Deserializes a model from binary data.

DeserializeNullableColor ( BinaryReader reader ) : Color?

Deserializes a nullable color from binary data.

DeserializeNullableFloat ( BinaryReader reader ) : float?

Deserializes a nullable float from binary data.

DeserializeQuaternion ( BinaryReader reader ) : Microsoft.Xna.Framework.Quaternion

Deserializes a Quaternion from binary data.

DeserializeStringFloatQuaternionDictionaryDictionary ( BinaryReader reader ) : IDictionary>

Deserializes a dictionary of float-quaternion dictionaries from binary data.

DeserializeStringFloatVector3DictionaryDictionary ( BinaryReader reader ) : IDictionary>

Deserializes a dictionary of float-vector3 dictionaries from binary data.

DeserializeVector2 ( BinaryReader reader ) : Vector2

Deserializes a Vector2 from binary data.

DeserializeVector3 ( BinaryReader reader ) : Vector3

Deserializes a Vector3 from binary data.

DeserializeVector4 ( BinaryReader reader ) : Vector4

Deserializes a Vector4 from binary data.

DeserializeVertexes ( BinaryReader reader ) : Protogame.ModelVertex[]

Deserializes a list of model vertexes from binary data.

SerializeAnimations ( BinaryWriter writer, IAnimationCollection availableAnimations ) : void

Serializes a collection of animations to a binary stream.

SerializeBoneHierarchy ( BinaryWriter writer, IModelBone root ) : void

Serializes the bone hierarchy of a model to a binary stream.

SerializeColor ( BinaryWriter writer, Color color ) : void

Serializes a Color to a binary stream.

SerializeFloatQuaternionDictionary ( BinaryWriter writer, Quaternion>.IDictionary dictionary ) : void

Serializes a float-quaternion dictionary to a binary stream.

SerializeFloatVector3Dictionary ( BinaryWriter writer, Vector3>.IDictionary dictionary ) : void

Serializes a float-vector3 dictionary to a binary stream.

SerializeIndices ( BinaryWriter writer, int indices ) : void

Serializes an array of model indices to a binary stream.

SerializeMaterial ( BinaryWriter writer, IMaterial material ) : void

Serializes a material to a binary stream.

SerializeMaterialTexture ( BinaryWriter writer, IMaterialTexture texture ) : void

Serializes a material texture to a binary stream.

SerializeMatrix ( BinaryWriter writer, Matrix matrix ) : void

Serializes a Matrix to a binary stream.

SerializeModel ( BinaryWriter writer, IModel model ) : void

Serializes a model to a binary stream.

SerializeNullableColor ( BinaryWriter writer, Color color ) : void

Serializes a Nullable{Color} to a binary stream.

SerializeNullableFloat ( BinaryWriter writer, float value ) : void

Serializes a Nullable{Single} to a binary stream.

SerializeQuaternion ( BinaryWriter writer, Microsoft.Xna.Framework.Quaternion quaternion ) : void

Serializes a Quaternion to a binary stream.

SerializeStringFloatQuaternionDictionaryDictionary ( BinaryWriter writer, Quaternion>.IDictionary dictionary ) : void

Serializes a dictionary of float-quaternion dictionaries to a binary stream.

SerializeStringFloatVector3DictionaryDictionary ( BinaryWriter writer, Vector3>.IDictionary dictionary ) : void

Serializes a dictionary of float-vector3 dictionaries to a binary stream.

SerializeVector2 ( BinaryWriter writer, Vector2 vector ) : void

Serializes a Vector2 to a binary stream.

SerializeVector3 ( BinaryWriter writer, Vector3 vector ) : void

Serializes a Vector3 to a binary stream.

SerializeVector4 ( BinaryWriter writer, Vector4 vector ) : void

Serializes a Vector4 to a binary stream.

SerializeVertexes ( BinaryWriter writer, ModelVertex vertexes ) : void

Serializes an array of model vertexes to a binary stream.

메소드 상세

Deserialize() 공개 메소드

Deserialize the specified byte array into a concrete Model implementation.
public Deserialize ( string name, byte data ) : Model
name string
data byte /// The byte array to deserialize. ///
리턴 Model

ModelSerializerVersion4() 공개 메소드

public ModelSerializerVersion4 ( IModelRenderConfiguration modelRenderConfigurations, IRenderBatcher renderBatcher ) : System
modelRenderConfigurations IModelRenderConfiguration
renderBatcher IRenderBatcher
리턴 System

Serialize() 공개 메소드

Serializes the specified IModel into a byte array.
public Serialize ( IModel model ) : byte[]
model IModel /// The model to serialize. ///
리턴 byte[]