summary refs log tree commit diff
path: root/src/Mesh.hpp
blob: a9dadb75523165bb9ad48055189dfdaf952f550d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include <utility>
#include <vector>
#include <cstdint>
#include "Math/Math.hpp"

namespace MC {

class Mesh {
public:
    Mesh(std::vector<Vector<3>> positions, std::vector<uint32_t> indices)
        : m_positions(std::move(positions)), m_indices(std::move(indices)) {};

    float* raw();
    size_t size();

    uint32_t* raw_indices();
    size_t indices_size();

private:
    std::vector<Vector<3>> m_positions;
    std::vector<uint32_t> m_indices;

};

}