blob: 12f8aaaad4eebed169de0708452dccc75d67094d (
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
|
#include "Mesh.hpp"
namespace MC::GFX {
float* Mesh::raw() {
return (float*) m_positions.data();
}
size_t Mesh::size() {
return m_positions.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();
}
}
|