NarcEngine 0.1.1
C++ Vulkan game engine
 
Loading...
Searching...
No Matches
Model3D.h
1//
2// Created by theoh on 3/4/2025.
3//
4
5#pragma once
6
7
8
9namespace narc_io {
10 typedef std::vector<glm::vec3> VertexList;
11 typedef std::vector<glm::vec3> ColorList;
12 typedef std::vector<glm::vec2> TexCoordList;
13 typedef std::vector<uint32_t> IndexList;
14
15 struct NARC_IO_API Model3D final
16 {
17 friend class FileReader;
18
19 GETTER uint32_t getVerticesCount() const { return m_vertices.size(); };
20 GETTER const VertexList* getVertices() const { return &m_vertices; };
21 GETTER const TexCoordList* getTexCoords() const { return &m_texCoords; };
22 GETTER const ColorList* getColors() const { return &m_colors; };
23 GETTER const IndexList* getIndices() const { return &m_indices; };
24
25 private:
26 std::vector<glm::vec3> m_vertices{};
27 std::vector<glm::vec2> m_texCoords{};
28 std::vector<glm::vec3> m_colors{};
29 std::vector<uint32_t> m_indices;
30 };
31} // narcio
Definition Model3D.h:16