summary refs log tree commit diff
path: root/src/Mesh.cpp
blob: 56ce9dc61f1ea7797dd3ef0b218c2ab232b8c9ad (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
#include "Mesh.hpp"

float* MC::Mesh::raw() {
    return (float*)m_positions.data();
}

size_t MC::Mesh::size() {
    return m_positions.size();
}

uint32_t* MC::Mesh::raw_indices() {
    return m_indices.data();
}

size_t MC::Mesh::indices_size() {
    return m_indices.size();
}

float* MC::Mesh::raw_tex_coords() {
    return (float*)m_tex_coords.data();
}

size_t MC::Mesh::tex_coords_size() {
    return m_tex_coords.size();
}