C# 클래스 Protogame.Model

This represents a runtime model, with full support for animation and bone manipulation.
상속: IModel
파일 보기 프로젝트 열기: RedpointGames/Protogame 1 사용 예제들

공개 메소드들

메소드 설명
CreateRenderRequest ( IRenderContext renderContext, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform ) : IRenderRequest

Creates a render request for the model using the specified transform.

Dispose ( ) : void
FreeCachedVertexBuffers ( ) : void

Frees any vertex buffers that are cached inside this model.

LoadBuffers ( GraphicsDevice graphicsDevice ) : void

Load the vertex and index buffer for this model.

Model ( IModelRenderConfiguration modelRenderConfigurations, IRenderBatcher renderBatcher, string name, IAnimationCollection availableAnimations, IMaterial material, IModelBone rootBone, ModelVertex vertexes, int indices ) : System

Initializes a new instance of the Model class.

Render ( IRenderContext renderContext, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform ) : void

Renders the model using the specified transform and GPU mapping.

메소드 상세

CreateRenderRequest() 공개 메소드

Creates a render request for the model using the specified transform.
public CreateRenderRequest ( IRenderContext renderContext, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform ) : IRenderRequest
renderContext IRenderContext /// The render context. ///
effect IEffect
effectParameterSet IEffectParameterSet
transform Matrix /// The transform. ///
리턴 IRenderRequest

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FreeCachedVertexBuffers() 공개 메소드

Frees any vertex buffers that are cached inside this model.
public FreeCachedVertexBuffers ( ) : void
리턴 void

LoadBuffers() 공개 메소드

Load the vertex and index buffer for this model.
public LoadBuffers ( GraphicsDevice graphicsDevice ) : void
graphicsDevice GraphicsDevice /// The graphics device. ///
리턴 void

Model() 공개 메소드

Initializes a new instance of the Model class.
public Model ( IModelRenderConfiguration modelRenderConfigurations, IRenderBatcher renderBatcher, string name, IAnimationCollection availableAnimations, IMaterial material, IModelBone rootBone, ModelVertex vertexes, int indices ) : System
modelRenderConfigurations IModelRenderConfiguration
renderBatcher IRenderBatcher
name string
availableAnimations IAnimationCollection /// The available animations. ///
material IMaterial
rootBone IModelBone /// The root bone, or null if there's no skeletal information. ///
vertexes ModelVertex /// The vertexes associated with this model. ///
indices int /// The indices associated with the model. ///
리턴 System

Render() 공개 메소드

Renders the model using the specified transform and GPU mapping.
public Render ( IRenderContext renderContext, IEffect effect, IEffectParameterSet effectParameterSet, Matrix transform ) : void
renderContext IRenderContext /// The render context. ///
effect IEffect
effectParameterSet IEffectParameterSet
transform Matrix /// The transform. ///
리턴 void