public void DisableBuffers(ESGraphicBuffer vertexBuffer, int stream)
 {
     for (int i = 0; i < elements.Length; i++)
     {
         var e = elements[i];
         if (e.Stream == stream)
         {
             GL.DisableVertexAttribArray(i);
         }
     }
 }
 public void SetupBuffers(ESGraphicBuffer vertexBuffer, int stream)
 {
     GL.BindBuffer(All.ArrayBuffer, vertexBuffer.buffer);
     for (int i = 0; i < elements.Length; i++)
     {
         var e = elements[i];
         if (e.Stream == stream)
         {
             GL.EnableVertexAttribArray(i);
             GL.VertexAttribPointer(i, Utils.GetElements(e.Format), Utils.GetType(e.Format), Utils.GetNormalized(e.Format), Utils.GetSize(e.Format), new IntPtr(e.Offset));
         }
     }
 }