C# 클래스 Microsoft.Xna.Framework.Graphics.Model

파일 보기 프로젝트 열기: procfxgen/MGShaderEditor 1 사용 예제들

공개 메소드들

메소드 설명
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