9 #ifndef GlobeEngine_Mesh_h
10 #define GlobeEngine_Mesh_h
13 #include "OpenGL_Includes.h"
16 #include "PLYObject.h"
23 enum MeshFormat { NONE = 0, OBJ, PLY};
31 void load(std::string _path);
32 void loadOBJ(std::string _path);
33 void loadPLY(std::string _path);
36 void draw(std::shared_ptr<ge::Camera> _cam);
44 void setVertexCount();
45 void createPositionBuffer(
unsigned int _bufferlayer);
46 void createColorBuffer(
unsigned int _bufferlayer);
47 void createNormalBuffer(
unsigned int _bufferlayer);
48 void createIndexBuffer();
57 std::vector<tinyobj::shape_t> objshapes;
Definition: DrawableComponent.h:25
~Mesh()
Definition: Mesh.h:27
void loadOBJ(std::string _path)
Definition: Mesh.cpp:19
Definition: AvalancheTrainingSimulationEngine.h:39
Mesh()
Definition: Mesh.h:26
void addPosition(vmml::Vector3d _pos)
Definition: Mesh.cpp:320
void destroy()
Definition: Mesh.cpp:10
void load(std::string _path)
Definition: Mesh.cpp:15
void loadPLY(std::string _path)
Definition: Mesh.cpp:43
void update()
Definition: Mesh.cpp:315
void clear()
Definition: Mesh.cpp:5
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: Mesh.cpp:281