Class Mesh
Represents an index buffer.
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class Mesh
Constructors
Mesh(VertexBuffer[], PrimitiveTopology, int, int)
Initializes a new instance of the Mesh class.
Declaration
public Mesh(VertexBuffer[] vertexBuffers, PrimitiveTopology primitiveTopology, int primitiveCount, int vertexOffset)
Parameters
Type | Name | Description |
---|---|---|
VertexBuffer[] | vertexBuffers | The vertex buffers used. |
PrimitiveTopology | primitiveTopology | The mesh's primitive topology. |
int | primitiveCount | The number of primitives in this mesh. |
int | vertexOffset | The vertex offset in the vertex buffers. |
Mesh(VertexBuffer[], IndexBuffer, PrimitiveTopology)
Initializes a new instance of the Mesh class.
Declaration
public Mesh(VertexBuffer[] vertexBuffers, IndexBuffer indexBuffer, PrimitiveTopology primitiveTopology)
Parameters
Type | Name | Description |
---|---|---|
VertexBuffer[] | vertexBuffers | The vertex buffer collection. |
IndexBuffer | indexBuffer | The index buffer. |
PrimitiveTopology | primitiveTopology | The mesh's primitive topology. |
Mesh(VertexBuffer[], IndexBuffer, PrimitiveTopology, int, int, int)
Initializes a new instance of the Mesh class.
Declaration
public Mesh(VertexBuffer[] vertexBuffers, IndexBuffer indexBuffer, PrimitiveTopology primitiveTopology, int primitiveCount, int vertexOffset = 0, int indexOffset = 0)
Parameters
Type | Name | Description |
---|---|---|
VertexBuffer[] | vertexBuffers | The vertex buffer collection. |
IndexBuffer | indexBuffer | The index buffer. |
PrimitiveTopology | primitiveTopology | The mesh primitive topology. |
int | primitiveCount | The number of primitives in this mesh. |
int | vertexOffset | The vertex offset in the vertex buffers. |
int | indexOffset | The index offset in the index buffer. |
Fields
AllowBatching
Allows batching.
Declaration
public bool AllowBatching
Field Value
Type | Description |
---|---|
bool |
BoundingBox
The mesh's bounding box.
Declaration
public BoundingBox? BoundingBox
Field Value
Type | Description |
---|---|
BoundingBox? |
Buffers
The buffer collection.
Declaration
public readonly Buffer[] Buffers
Field Value
Type | Description |
---|---|
Buffer[] |
ElementCount
The number of primitives.
Declaration
public int ElementCount
Field Value
Type | Description |
---|---|
int |
IndexBuffer
The index buffer.
Declaration
public readonly IndexBuffer IndexBuffer
Field Value
Type | Description |
---|---|
IndexBuffer |
IndexOffset
The index offset.
Declaration
public int IndexOffset
Field Value
Type | Description |
---|---|
int |
InputLayoutHash
The input layout's hash code.
Declaration
public readonly uint InputLayoutHash
Field Value
Type | Description |
---|---|
uint |
InputLayouts
The input layout for this mesh.
Declaration
public readonly InputLayouts InputLayouts
Field Value
Type | Description |
---|---|
InputLayouts |
MaterialIndex
Material index.
Declaration
public int MaterialIndex
Field Value
Type | Description |
---|---|
int |
Offsets
The offset collection.
Declaration
public readonly int[] Offsets
Field Value
Type | Description |
---|---|
int[] |
PrimitiveTopology
The mesh's primitive topology.
Declaration
public readonly PrimitiveTopology PrimitiveTopology
Field Value
Type | Description |
---|---|
PrimitiveTopology |
VertexBuffers
The vertex buffer collection.
Declaration
public readonly VertexBuffer[] VertexBuffers
Field Value
Type | Description |
---|---|
VertexBuffer[] |
VertexOffset
Represents the vertex offset.
Declaration
public int VertexOffset
Field Value
Type | Description |
---|---|
int |
Properties
PrimitiveCount
Gets or sets the primitive count.
Declaration
public int PrimitiveCount { get; set; }
Property Value
Type | Description |
---|---|
int |