protected BufferObject() { count = 0; size_of_t = System.Runtime.InteropServices.Marshal.SizeOf(typeof(T)); uint[] buffers = new uint[1] { 0 }; OpenGL.glGenBuffers(1, buffers); handle = buffers[0]; }