diff options
Diffstat (limited to 'src/GFX/Mesh.cpp')
| -rw-r--r-- | src/GFX/Mesh.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/GFX/Mesh.cpp b/src/GFX/Mesh.cpp new file mode 100644 index 0000000..12f8aaa --- /dev/null +++ b/src/GFX/Mesh.cpp @@ -0,0 +1,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(); +} + +} \ No newline at end of file |
