summaryrefslogtreecommitdiff
path: root/inc/mesh.hpp
blob: 91fa500061d405bbbba95d6f49399367e7fb0cf7 (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 {
public:
  usu::vector<VECTOR> vertices;
  usu::vector<TRIANGLE> triangles;
};

#endif // MESH_HPP