Class MeshPrimitiveContent
This class represents the asset mesh primitives.
Namespace: Evergine.Framework.Assets.AssetSources.Nodes
Assembly: Evergine.Framework.dll
Syntax
public class MeshPrimitiveContent
Fields
BoundingBox
The mesh's bounding box.
Declaration
public BoundingBox? BoundingBox
Field Value
Type | Description |
---|---|
BoundingBox? |
MaterialIndex
Index of the material.
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 array of morph targets.
Declaration
public MorphTargetDescription[] MorphTargetSlots { get; set; }
Property Value
Type | Description |
---|---|
MorphTargetDescription[] |
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 BinaryReader stream. |
Returns
Type | Description |
---|---|
MeshPrimitiveContent | The MeshPrimitiveContent instance. |