HatchitGraphics
ht_mesh.h
1 
25 #pragma once
26 
27 #include <ht_platform.h>
28 #include <ht_model.h>
29 #include <ht_mesh_resource.h>
30 
31 namespace Hatchit {
32  namespace Graphics {
33 
34  class MeshBase;
35 
36  struct Vertex
37  {
38  aiVector3D pos;
39  aiVector3D norm;
40  aiVector2D uv;
41  };
42 
43  class HT_API Mesh : public Core::RefCounted<Mesh>
44  {
45  public:
46  Mesh(Core::Guid ID);
47  ~Mesh();
48 
49  bool Initialize(const std::string& file);
50 
51  uint32_t GetIndexCount();
52 
53  MeshBase* const GetBase() const;
54 
55  protected:
56  MeshBase* m_base;
57  };
58 
60  }
61 }
Definition: ht_mesh_base.h:35
Definition: ht_mesh.h:36
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_color.h:19
Definition: ht_mesh.h:43