2023-11-24 20:19:42 -05:00
|
|
|
#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 {
|
2023-11-25 19:05:01 -05:00
|
|
|
public:
|
|
|
|
usu::vector<VECTOR> vertices;
|
|
|
|
usu::vector<TRIANGLE> triangles;
|
2023-11-24 20:19:42 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MESH_HPP
|