#ifndef BUFFER_H_ #define BUFFER_H_ #include #include "../lib/glm/glm.hpp" #include "vertex.h" #include "shader.h" class Buffer { public: Buffer(const std::vector& vertices, const std::vector& indices); ~Buffer(); void Draw(const Shader& shader) const; private: uint32_t vao_, vbo_, ebo_; GLsizei index_count_; }; #endif // BUFFER_H_