public LineRenderer(Shader sh) { if (sh == null) { throw new ArgumentNullException("shader"); } _shader = sh; _vbo = new GLBuffer <LineVertex>(BufferTarget.ArrayBuffer); _ibo = new GLBuffer <int>(BufferTarget.ElementArrayBuffer); _vbo.Bind(); _vbo.SetSize(StartingLineCount * linesize, BufferUsageHint.DynamicDraw); _vbo.Unbind(); _ibo.Bind(); _ibo.SetSize(StartingLineCount * linesize, BufferUsageHint.DynamicDraw); _ibo.Unbind(); }