#pragma once #include #include "utils.h" class ElementBufferObject { private: unsigned int _id = 0; std::vector _indices; public: ElementBufferObject(); ElementBufferObject(const std::vector& indices); ElementBufferObject(std::vector&& indices); inline unsigned int id() const { return _id; } inline std::vector indices() const { return _indices; } inline void dispose() const; }; inline void ElementBufferObject::dispose() const { OPENGL_EXTRA_FUNCTIONS->glDeleteBuffers(1, &_id); }