Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::SubMesh Struct Reference

Represents a contiguous section of the mesh data inside the merged buffers. More...

#include <Mesh.h>

Public Attributes

u32 BaseVertex = 0
 Offset into the combined vertex buffer.
u32 BaseIndex = 0
 Offset into the combined index buffer.
u32 IndexCount = 0
 Number of indices in this submesh.
MaterialHandle MatHandle
 Handle to the associated material.

Detailed Description

Represents a contiguous section of the mesh data inside the merged buffers.

Each SubMesh references its range in the global vertex/index buffer pair, along with the material used for rendering that section.

Member Data Documentation

◆ BaseIndex

u32 Raven::SubMesh::BaseIndex = 0

Offset into the combined index buffer.

◆ BaseVertex

u32 Raven::SubMesh::BaseVertex = 0

Offset into the combined vertex buffer.

◆ IndexCount

u32 Raven::SubMesh::IndexCount = 0

Number of indices in this submesh.

◆ MatHandle

MaterialHandle Raven::SubMesh::MatHandle

Handle to the associated material.


The documentation for this struct was generated from the following file:
  • Illumine/src/Renderer/Mesh.h