summary refs log tree commit diff
path: root/src/GFX/Mesh.cpp
blob: 1bac9f10c43058e4e6f7fa35fcef203ffc88f38e (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
28
29
30
31
32
33
34
35
36
37
#include "Mesh.hpp"

namespace MC::GFX {

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

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

float* Mesh::raw_normals() {
    return (float*) m_normals.data();
}

size_t Mesh::normals_size() {
    return m_normals.size();
}

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

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

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

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

}