4#include <Eigen/Geometry>
5#include <SDL3/SDL_stdinc.h>
17 std::vector<Uint32> &indices);
27 std::pair<Uint32, Uint32>
A class to store type-erased vertex data and index data.
Definition MeshData.h:33
std::pair< Uint32, Uint32 > mergeCalcIndexVertexCount(std::span< const MeshData > meshes)
Number of vertices and indices in the merged mesh.
void triangleStripGenerateIndices(Uint32 vertexCount, std::vector< Uint32 > &indices)
Generate indices for a triangle strip geometry, given the vertex count.
MeshData mergeMeshes(std::span< const MeshData > meshes)
Merge meshes down to a single mesh with consistent indexing.
void apply3DTransformInPlace(MeshData &meshData, const Eigen::Affine3f &tr)
Apply an Eigen::Affine3f 3D transform to a mesh in-place, transforming its vertices.
MeshData generateIndices(const MeshData &meshData)
Convert MeshData object to an indexed mesh.