C# Класс Protogame.Model

This represents a runtime model, with full support for animation and bone manipulation.
Наследование: IModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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