Class MeshPrimitiveContent
This class represent the asset mesh primitives.
Inherited Members
Namespace: Evergine.Framework.Assets.AssetSources.Nodes
Assembly: Evergine.Framework.dll
Syntax
public class MeshPrimitiveContent
Fields
BoundingBox
Mesh bounding box.
Declaration
public BoundingBox? BoundingBox
Field Value
| Type | Description |
|---|---|
| BoundingBox? |
MaterialIndex
Material index.
Declaration
public int MaterialIndex
Field Value
| Type | Description |
|---|---|
| int |
Properties
IndexBuffer
Gets or sets the index buffer.
Declaration
public IndexBufferContent IndexBuffer { get; set; }
Property Value
| Type | Description |
|---|---|
| IndexBufferContent |
IsSkinned
Gets or sets a value indicating whether the mesh primitive is skinned.
Declaration
public bool IsSkinned { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MorphTargetSlots
Gets or sets the morph targets array.
Declaration
public MorphTargetContent[] MorphTargetSlots { get; set; }
Property Value
| Type | Description |
|---|---|
| MorphTargetContent[] |
Topology
Gets or sets the primitive topology.
Declaration
public PrimitiveTopology Topology { get; set; }
Property Value
| Type | Description |
|---|---|
| PrimitiveTopology |
VertexBuffers
Gets or sets the vertex attribute dictionary.
Declaration
public VertexBufferContent[] VertexBuffers { get; set; }
Property Value
| Type | Description |
|---|---|
| VertexBufferContent[] |
Methods
Read(BinaryReader)
Reads a MeshPrimitiveContent instance from a BinaryReader stream.
Declaration
public static MeshPrimitiveContent Read(BinaryReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | The binary reader stream. |
Returns
| Type | Description |
|---|---|
| MeshPrimitiveContent | The MeshPrimitiveContent instance. |