C# Class Indiefreaks.Xna.Rendering.Instancing.Skinned.SkinnedInstanceEntity

Represents one single instance of a mesh.
The World property can be used to move the instance. All other SunBurn properties aren't used
Inheritance: SceneEntity
ファイルを表示 Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
PlayAnimation ( string name, bool looped ) : void
StopAnimation ( ) : void
Update ( GameTime gametime ) : void

Protected Methods

Method Description
SkinnedInstanceEntity ( string name, int index, InstancedSkinnedSceneObject sceneObject, Matrix transform ) : System

Creates a new instance of the InstanceEntity

Private Methods

Method Description
UpdateAnimation ( GameTime gameTime ) : void

Method Details

PlayAnimation() public method

public PlayAnimation ( string name, bool looped ) : void
name string
looped bool
return void

SkinnedInstanceEntity() protected method

Creates a new instance of the InstanceEntity
protected SkinnedInstanceEntity ( string name, int index, InstancedSkinnedSceneObject sceneObject, Matrix transform ) : System
name string The name of the instance
index int The index used in the SceneObject.SkinBones array
sceneObject InstancedSkinnedSceneObject The SceneObject this instance pertains to
transform Matrix The matrix used to place the instance in the world
return System

StopAnimation() public method

public StopAnimation ( ) : void
return void

Update() public method

public Update ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
return void