C# Class OOGL.Animation.Model

A 3d model capable of skeletal animation Thread safety - This class must be only be used from the main thread.
Show file Open project: tpb3d/TPB3D Class Usage Examples

Public Properties

Property Type Description
bones OOGL.Animation.Bone[]
groups OOGL.Animation.Group[]
samples OOGL.Animation.Sample[]
shader OOGL.Shaders.ShaderProgram
vertexTransformations Matrix4[]

Public Methods

Method Description
Draw ( Controller controller, float elapsedTime, Matrix4 modelViewMatrix ) : void
FindSampleIndex ( string name ) : int
Model ( ShaderProgram shader, Group groups, Bone bones, Sample samples ) : System
UpdateBoneTransformations ( Track tracks ) : void

Method Details

Draw() public method

public Draw ( Controller controller, float elapsedTime, Matrix4 modelViewMatrix ) : void
controller Controller
elapsedTime float
modelViewMatrix Matrix4
return void

FindSampleIndex() public method

public FindSampleIndex ( string name ) : int
name string
return int

Model() public method

public Model ( ShaderProgram shader, Group groups, Bone bones, Sample samples ) : System
shader OOGL.Shaders.ShaderProgram
groups Group
bones Bone
samples Sample
return System

UpdateBoneTransformations() public method

public UpdateBoneTransformations ( Track tracks ) : void
tracks Track
return void

Property Details

bones public property

public Bone[],OOGL.Animation bones
return OOGL.Animation.Bone[]

groups public property

public Group[],OOGL.Animation groups
return OOGL.Animation.Group[]

samples public property

public Sample[],OOGL.Animation samples
return OOGL.Animation.Sample[]

shader public property

public ShaderProgram,OOGL.Shaders shader
return OOGL.Shaders.ShaderProgram

vertexTransformations public property

public Matrix4[] vertexTransformations
return Matrix4[]