C# 클래스 Axiom.Serialization.MeshSerializer

Class for serialising mesh data to/from an OGRE .mesh file.
This class allows exporters to write OGRE .mesh files easily, and allows the OGRE engine to import .mesh files into instatiated OGRE Meshes.

It's important to realize that this exporter uses OGRE terminology. In this context, 'Mesh' means a top-level mesh structure which can actually contain many SubMeshes, each of which has only one Material. Modelling packages may refer to these differently, for example in Milkshape, it says 'Model' instead of 'Mesh' and 'Mesh' instead of 'SubMesh', but the theory is the same.

상속: Serializer
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
ExportMesh ( Axiom.Core.Mesh mesh, string fileName ) : void

Exports a mesh to the file specified.

GetDependencyInfo ( Stream stream, Axiom.Core.Mesh mesh ) : DependencyInfo
ImportMesh ( Stream stream, Axiom.Core.Mesh mesh ) : void

Imports mesh data from a .mesh file.

MeshSerializer ( ) : System

Default constructor.

메소드 상세

ExportMesh() 공개 메소드

Exports a mesh to the file specified.
public ExportMesh ( Axiom.Core.Mesh mesh, string fileName ) : void
mesh Axiom.Core.Mesh Reference to the mesh to export.
fileName string The destination filename.
리턴 void

GetDependencyInfo() 공개 메소드

public GetDependencyInfo ( Stream stream, Axiom.Core.Mesh mesh ) : DependencyInfo
stream Stream
mesh Axiom.Core.Mesh
리턴 DependencyInfo

ImportMesh() 공개 메소드

Imports mesh data from a .mesh file.
public ImportMesh ( Stream stream, Axiom.Core.Mesh mesh ) : void
stream Stream The stream holding the .mesh data. Must be initialised (pos at the start of the buffer).
mesh Axiom.Core.Mesh Reference to the Mesh object which will receive the data. Should be blank already.
리턴 void

MeshSerializer() 공개 메소드

Default constructor.
public MeshSerializer ( ) : System
리턴 System