#ifndef Model_h__ #define Model_h__ #include #include #include #include #include #include #define _CRT_SECURE_NO_WARNINGS #include #define GLFW_INCLUDE_GLU #include #include #define GLM_FORCE_RADIANS #include #include #include #include #include "glerror.h" #include #include "Texture.h" class Model { public: std::vector Vertices; std::vector Normals; std::vector TextureCoords; GLuint VertexBuffer; GLuint NormalBuffer; GLuint TextureCoordBuffer; GLuint VAO; std::vector> texture; Model(const char* path); bool Loadobj( const char* path, std::vector & out_vertices, std::vector &out_normals, std::vector & out_TextureCoords ); glm::mat4 GetMatrix(); void CreateBuffers( std::vector _Vertices, std::vector _Normals, std::vector_TextureCoords ); }; #endif // Model_h__