MeshData.ixx File
Plain mesh payload containing vertex/index buffers and primitive topology. More...
Included Headers
#include <span>
#include <vector>
#include <helios.engine.rendering.mesh.types.PrimitiveType>
#include <helios.engine.rendering.common.types.Vertex>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | rendering |
| namespace | mesh |
| namespace | types |
Classes Index
| struct | MeshData |
|
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:
15using namespace helios::engine::rendering::common::types;;
17export namespace helios::engine::rendering::mesh::types {
45 explicit MeshData(std::vector<Vertex> vertices, std::vector<unsigned int> indices, PrimitiveType primitiveType)
46 : vertices(std::move(vertices)), indices(std::move(indices)), primitiveType(primitiveType) {};
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) {};
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.