Class Mesh
Represents an index buffer.
Inherited Members
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 | Index buffer format. |
PrimitiveTopology | primitiveTopology | The mesh 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 | Index buffer format. |
IndexBuffer | indexBuffer | The buffer. |
PrimitiveTopology | primitiveTopology | The mesh 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 | Index buffer format. |
IndexBuffer | indexBuffer | The 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
Allow batching.
Declaration
public bool AllowBatching
Field Value
Type | Description |
---|---|
bool |
BoundingBox
The mesh bounding box.
Declaration
public BoundingBox? BoundingBox
Field Value
Type | Description |
---|---|
BoundingBox? |
Buffers
The vertex buffers.
Declaration
public readonly Buffer[] Buffers
Field Value
Type | Description |
---|---|
Buffer[] |
ElementCount
The primitive count.
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 hash code.
Declaration
public readonly uint InputLayoutHash
Field Value
Type | Description |
---|---|
uint |
InputLayouts
The input layout of 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 vertex buffers.
Declaration
public readonly int[] Offsets
Field Value
Type | Description |
---|---|
int[] |
PrimitiveTopology
The mesh primitive topology.
Declaration
public readonly PrimitiveTopology PrimitiveTopology
Field Value
Type | Description |
---|---|
PrimitiveTopology |
VertexBuffers
The vertex buffers.
Declaration
public readonly VertexBuffer[] VertexBuffers
Field Value
Type | Description |
---|---|
VertexBuffer[] |
VertexOffset
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 |