C# Class Microsoft.Xna.Framework.Graphics.Model

Show file Open project: procfxgen/MGShaderEditor Class Usage Examples

Public Methods

Method Description
CopyAbsoluteBoneTransformsTo ( Matrix destinationBoneTransforms ) : void

Copies bone transforms relative to all parent bones of the each bone from this model to a given array.

CopyBoneTransformsFrom ( Matrix sourceBoneTransforms ) : void

Copies bone transforms relative to Model.Root bone from a given array to this model.

CopyBoneTransformsTo ( Matrix destinationBoneTransforms ) : void

Copies bone transforms relative to Model.Root bone from this model to a given array.

Draw ( Matrix world, Matrix view, Matrix projection ) : void

Draws the model meshes.

Model ( GraphicsDevice graphicsDevice, List bones, List meshes ) : System

Constructs a model.

Private Methods

Method Description
BuildHierarchy ( ) : void
BuildHierarchy ( Microsoft.Xna.Framework.Graphics.ModelBone node, Matrix parentTransform, int level ) : void
Model ( ) : System

Method Details

CopyAbsoluteBoneTransformsTo() public method

Copies bone transforms relative to all parent bones of the each bone from this model to a given array.
public CopyAbsoluteBoneTransformsTo ( Matrix destinationBoneTransforms ) : void
destinationBoneTransforms Matrix The array receiving the transformed bones.
return void

CopyBoneTransformsFrom() public method

Copies bone transforms relative to Model.Root bone from a given array to this model.
public CopyBoneTransformsFrom ( Matrix sourceBoneTransforms ) : void
sourceBoneTransforms Matrix The array of prepared bone transform data.
return void

CopyBoneTransformsTo() public method

Copies bone transforms relative to Model.Root bone from this model to a given array.
public CopyBoneTransformsTo ( Matrix destinationBoneTransforms ) : void
destinationBoneTransforms Matrix The array receiving the transformed bones.
return void

Draw() public method

Draws the model meshes.
public Draw ( Matrix world, Matrix view, Matrix projection ) : void
world Matrix The world transform.
view Matrix The view transform.
projection Matrix The projection transform.
return void

Model() public method

Constructs a model.
public Model ( GraphicsDevice graphicsDevice, List bones, List meshes ) : System
graphicsDevice GraphicsDevice A valid reference to .
bones List The collection of bones.
meshes List The collection of meshes.
return System