C# Class WaveEngine.Components.Graphics3D.ModelRenderer

Renders a 3D model on the screen.
Inheritance: Drawable3D
显示文件 Open project: WaveEngine/Components

Public Methods

Method Description
Draw ( System.TimeSpan gameTime ) : void

Draws the model.

ModelRenderer ( ) : System

Initializes a new instance of the ModelRenderer class.

ModelRenderer ( string name ) : System

Initializes a new instance of the ModelRenderer class.

TryGetBoneWorldTransform ( string boneName, System.Matrix &transform ) : bool

Tries to get the world transform of a given bone.

Protected Methods

Method Description
DefaultValues ( ) : void

Sets the default values

DeleteDependencies ( ) : void

Deletes the dependencies.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Initialize ( ) : void

Initialize model renderer

ResolveDependencies ( ) : void

Resolves the dependencies.

Method Details

DefaultValues() protected method

Sets the default values
protected DefaultValues ( ) : void
return void

DeleteDependencies() protected method

Deletes the dependencies.
protected DeleteDependencies ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

Draw() public method

Draws the model.
public Draw ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The elapsed game time.
return void

Initialize() protected method

Initialize model renderer
protected Initialize ( ) : void
return void

ModelRenderer() public method

Initializes a new instance of the ModelRenderer class.
public ModelRenderer ( ) : System
return System

ModelRenderer() public method

Initializes a new instance of the ModelRenderer class.
public ModelRenderer ( string name ) : System
name string Name of this instance.
return System

ResolveDependencies() protected method

Resolves the dependencies.
protected ResolveDependencies ( ) : void
return void

TryGetBoneWorldTransform() public method

Tries to get the world transform of a given bone.
public TryGetBoneWorldTransform ( string boneName, System.Matrix &transform ) : bool
boneName string Name of the bone.
transform System.Matrix The transform of the bone.
return bool