HatchitResource
ht_mesh_resource.h
1 
15 #pragma once
16 
17 #include <ht_platform.h>
18 #include <ht_assimp.h>
19 #include <vector>
20 #include <memory>
21 
22 namespace Hatchit {
23 
24  namespace Resource {
25 
26  class HT_API Mesh
27  {
28  public:
29  Mesh(aiMesh* mesh);
30 
31  ~Mesh();
32 
33  std::vector<aiVector3D> getVertices();
34  std::vector<aiVector3D> getNormals();
35  std::vector<aiVector3D> getUVs();
36 
37  std::vector<aiFace> getIndices();
38 
39  private:
40  std::vector<aiVector3D> m_vertices;
41  std::vector<aiVector3D> m_normals;
42  std::vector<aiVector3D> m_uvs;
43 
44  std::vector<aiFace> m_indices;
45  };
46  typedef std::unique_ptr<Mesh> MeshPtr;
47  }
48 }
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_assimp.h:31
Definition: ht_mesh_resource.h:26