#ifndef MESHH #define MESHH #define SFML_STATIC #define GLEW_STATIC #include #include #include #include #include #include #include #include namespace agl { struct Index { int vertexIndex, normalIndex, texIndex; }; class Mesh { GLuint vao, vbuf, nbuf, tbuf; float *vertexData; float *normalData; float *texData; int rnum; std::vector vertices; std::vector normals; std::vector textices; std::vector indices; public: Mesh(){}; Mesh(char *); int loadFromFile(char *); void Render(); void test(); ~Mesh(); }; }; #endif