Euphoria
mesh.h
Go to the documentation of this file.
1#pragma once
2
3#include "eu/core/geom.h"
4
5
6namespace eu::core
7{
8
9struct MeshGeom
10{
12 // std::size_t material;
13};
14
16{
17 std::string name;
19 std::vector<MeshGeom> geoms;
20};
21
22struct Mesh
23{
24 // todo(Gustav): change the single list to a hierachy?
25 std::vector<TransformedMesh> meshes;
26 // std::vector<Material> materials;
27};
28
29}
constexpr m4 m4_identity
The identity matrix.
Definition mat4.h:177
vertices and triangles
Definition geom.h:30
std::vector< TransformedMesh > meshes
Definition mesh.h:25
std::vector< MeshGeom > geoms
Definition mesh.h:19
std::string name
Definition mesh.h:17
4x4 matrix
Definition mat4.h:19