4 using System.Collections.Generic;
6 namespace SiliconStudio.
Paradox.Effects
21 if (pipeline == null)
throw new ArgumentNullException(
"pipeline");
24 ModelInstance = modelInstance;
25 Model = modelInstance.Model;
26 Parameters = modelInstance.Parameters;
28 var modelRendererState = Pipeline.GetOrCreateModelRendererState();
29 var slotCount = modelRendererState.ModelSlotCount;
30 RenderMeshes =
new List<RenderMesh>[slotCount];
33 modelRendererState.PrepareRenderModel(
this);
46 if (pipeline == null)
throw new ArgumentNullException(
"pipeline");
49 var slotCount = Pipeline.GetOrCreateModelRendererState().ModelSlotCount;
50 RenderMeshes =
new List<RenderMesh>[slotCount];
RenderModel(RenderPipeline pipeline, IModelInstance modelInstance)
Initializes a new instance of the RenderModel class.
readonly RenderPipeline Pipeline
Gets the render pipeline.
Instance of a model with its parameters.
Instantiation of a Model through a RenderPipeline.
readonly List< RenderMesh >[] RenderMeshes
Gets the meshes instantiated for this view.
readonly Model Model
Gets the underlying model.
readonly ParameterCollection Parameters
Gets the instance parameters to this model.
RenderModel(RenderPipeline pipeline, Model model)
Initializes a new instance of the RenderModel class.
readonly IModelInstance ModelInstance
The model instance
Defines an entry point for mesh instantiation and recursive rendering.
Collection of Mesh, each one usually being a different LOD of the same Model. The effect system will ...
A container to handle a hierarchical collection of effect variables.