Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Paradox.Effects.Model Class Reference

Collection of Mesh, each one usually being a different LOD of the same Model. The effect system will select the appropriate LOD depending on distance, current pass, and other effect-specific requirements. More...

Inheritance diagram for SiliconStudio.Paradox.Effects.Model:
IEnumerable

Public Member Functions

void Add (Model model)
 Adds the specified model view (for collection initializers). More...
 
void Add (Mesh mesh)
 Adds the specified mesh (for collection initializers). More...
 
Model Instantiate ()
 Create a clone with its own ParameterCollection. It allows reuse of a single Model for multiple ModelComponent. More...
 

Static Public Member Functions

static Model FromGeometricMeshData (GraphicsDevice graphicsDevice, GeometricMeshData< VertexPositionNormalTexture > geometryMesh, string effectName="Default")
 
static Model FromGeometricMeshData (GraphicsDevice graphicsDevice, GeometricMeshData< VertexPositionNormalTangentMultiTexture > geometryMesh, string effectName="Default")
 
static Model FromGeometricMeshData< T > (GraphicsDevice graphicsDevice, GeometricMeshData< T > geometryMesh, BoundingBox boundingBox, VertexDeclaration layout, string effectName="Default")
 

Properties

IList< ModelChildren [get, set]
 Gets the views. More...
 
List< MeshMeshes [get]
 Gets the meshes. More...
 
ModelViewHierarchyDefinition Hierarchy [get, set]
 Gets or sets the hierarchy definition, which describes nodes name, default transformation and hierarchical parent. More...
 
BoundingBox BoundingBox [get, set]
 Gets or sets the bounding box encompassing all the Meshes (not including animation). More...
 

Detailed Description

Collection of Mesh, each one usually being a different LOD of the same Model. The effect system will select the appropriate LOD depending on distance, current pass, and other effect-specific requirements.

Definition at line 23 of file Model.cs.

Member Function Documentation

void SiliconStudio.Paradox.Effects.Model.Add ( Model  model)

Adds the specified model view (for collection initializers).

Parameters
modelThe model view.

Definition at line 83 of file Model.cs.

void SiliconStudio.Paradox.Effects.Model.Add ( Mesh  mesh)

Adds the specified mesh (for collection initializers).

Parameters
meshThe mesh.

Definition at line 92 of file Model.cs.

static Model SiliconStudio.Paradox.Effects.Model.FromGeometricMeshData ( GraphicsDevice  graphicsDevice,
GeometricMeshData< VertexPositionNormalTexture geometryMesh,
string  effectName = "Default" 
)
static
static Model SiliconStudio.Paradox.Effects.Model.FromGeometricMeshData ( GraphicsDevice  graphicsDevice,
GeometricMeshData< VertexPositionNormalTangentMultiTexture geometryMesh,
string  effectName = "Default" 
)
static
static Model SiliconStudio.Paradox.Effects.Model.FromGeometricMeshData< T > ( GraphicsDevice  graphicsDevice,
GeometricMeshData< T >  geometryMesh,
BoundingBox  boundingBox,
VertexDeclaration  layout,
string  effectName = "Default" 
)
static
Type Constraints
T :struct 
T :IVertex 

Definition at line 126 of file Model.cs.

References SiliconStudio.Paradox.Graphics.Buffer.New().

Model SiliconStudio.Paradox.Effects.Model.Instantiate ( )

Create a clone with its own ParameterCollection. It allows reuse of a single Model for multiple ModelComponent.

Definition at line 170 of file Model.cs.

Property Documentation

BoundingBox SiliconStudio.Paradox.Effects.Model.BoundingBox
getset

Gets or sets the bounding box encompassing all the Meshes (not including animation).

The bounding box.

Definition at line 70 of file Model.cs.

IList<Model> SiliconStudio.Paradox.Effects.Model.Children
getset

Gets the views.

The views.

Definition at line 37 of file Model.cs.

ModelViewHierarchyDefinition SiliconStudio.Paradox.Effects.Model.Hierarchy
getset

Gets or sets the hierarchy definition, which describes nodes name, default transformation and hierarchical parent.

The hierarchy, which describes nodes name, default transformation and hierarchical parent.

Definition at line 61 of file Model.cs.

Referenced by SiliconStudio.Paradox.Effects.ModelViewHierarchyUpdater.Initialize().

List<Mesh> SiliconStudio.Paradox.Effects.Model.Meshes
get

Gets the meshes.

The meshes.

Definition at line 50 of file Model.cs.


The documentation for this class was generated from the following file: