C# Class Pokemon3D.GameModes.ModelMesh

Object Holding a Mesh and Material from a file loaded object.
Show file Open project: nilllzz/Pokemon3D Class Usage Examples

Public Methods

Method Description
LoadFromFile ( GameMode gameMode, string filePath ) : ModelMesh[]
ModelMesh ( GameMode gameMode, Assimp assimpScene, Assimp assimpMesh, string modelDirectory ) : System

Private Methods

Method Description
GenerateGeometryDataFromAssimpMesh ( Assimp mesh ) : GeometryData
GenerateMaterialFromMesh ( int materialIndex, GameMode gameMode, Assimp assimpScene, string modelDirectory ) : Material
GetTextureFromSlot ( GameMode gameMode, string modelDirectory, Assimp.TextureSlot textureSlot ) : Microsoft.Xna.Framework.Graphics.Texture2D
LoadPMesh ( GameMode gameMode, string filePath ) : ModelMesh
ModelMesh ( ) : System

Method Details

LoadFromFile() public static method

public static LoadFromFile ( GameMode gameMode, string filePath ) : ModelMesh[]
gameMode GameMode
filePath string
return ModelMesh[]

ModelMesh() public method

public ModelMesh ( GameMode gameMode, Assimp assimpScene, Assimp assimpMesh, string modelDirectory ) : System
gameMode GameMode
assimpScene Assimp
assimpMesh Assimp
modelDirectory string
return System