Skip to main content

MeshData.ixx File

Plain mesh payload containing vertex/index buffers and primitive topology. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine
namespacerendering
namespacemesh
namespacetypes

Classes Index

structMeshData

Raw mesh data container used by mesh registries and render backends. More...

Description

Plain mesh payload containing vertex/index buffers and primitive topology.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <span>
8#include <vector>
9
10export module helios.engine.rendering.mesh.types.MeshData;
11
12import helios.engine.rendering.common.types.Vertex;
13import helios.engine.rendering.mesh.types.PrimitiveType;
14
16
18
22 struct MeshData {
23
27 std::vector<Vertex> vertices;
28
32 std::vector<unsigned int> indices;
33
38
45 explicit MeshData(std::vector<Vertex> vertices, std::vector<unsigned int> indices, PrimitiveType primitiveType)
47
54 explicit MeshData(std::span<const Vertex> vertices, std::span<const unsigned int> indices, PrimitiveType primitiveType)
55 : vertices(vertices.begin(), vertices.end()), indices(indices.begin(), indices.end()), primitiveType(primitiveType) {};
56
57
58 };
59}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.