C# Класс Microsoft.Xna.Framework.Graphics.Model

Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
BuildHierarchy ( ) : void
BuildHierarchy ( Microsoft.Xna.Framework.Graphics.ModelBone node, Matrix parentTransform, int level ) : void
Model ( ) : System

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

CopyAbsoluteBoneTransformsTo() публичный Метод

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.
Результат void

CopyBoneTransformsFrom() публичный Метод

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.
Результат void

CopyBoneTransformsTo() публичный Метод

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.
Результат void

Draw() публичный Метод

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.
Результат void

Model() публичный Метод

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.
Результат System