summaryrefslogtreecommitdiff
path: root/inc/mesh.hpp
blob: db465fb2adb7ed7a1c513fdd7f2d7eac16dd8d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MESH_HPP
#define MESH_HPP

#include "vector.hpp"
#include <memory>
#include <tonc.h>
#include <tuple>

class Scene;

typedef struct TRIANGLE {
  std::tuple<std::uint8_t, std::uint8_t, std::uint8_t> vertex_indices;
  std::uint8_t color_idx;
} TRIANGLE;

class Mesh {
protected:
  usu::vector<VECTOR> m_vertices;
  usu::vector<TRIANGLE> m_triangles;
};

#endif // MESH_HPP