Creating base class for managing OpenGL buffers