(gl)
| 14503 | /*#__PURE__*/ |
| 14504 | function () { |
| 14505 | function VertexArray(gl) { |
| 14506 | var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
| 14507 | (0, _classCallCheck2.default)(this, VertexArray); // Use program's id if program is supplied but no id is supplied |
| 14508 | |
| 14509 | var id = opts.id || opts.program && opts.program.id; // super(gl, Object.assign({}, opts, {id})); |
| 14510 | |
| 14511 | this.id = id; |
| 14512 | this.gl = gl; |
| 14513 | this.configuration = null; // Extracted information |
| 14514 | |
| 14515 | this.elements = null; |
| 14516 | this.values = null; |
| 14517 | this.accessors = null; |
| 14518 | this.unused = null; |
| 14519 | this.drawParams = null; |
| 14520 | this.buffer = null; // For attribute 0 on desktops, and created when unbinding buffers |
| 14521 | |
| 14522 | this.vertexArrayObject = _vertexArrayObject.default.isSupported(gl) ? new _vertexArrayObject.default(gl) : _vertexArrayObject.default.getDefaultArray(gl); // Issue errors when using removed methods |
| 14523 | |
| 14524 | (0, _utils.stubRemovedMethods)(this, 'VertexArray', 'v6.0', ['setBuffers', 'setGeneric', 'clearBindings', 'setLocations', 'setGenericValues', 'setDivisor', 'enable', 'disable']); |
| 14525 | this.initialize(opts); |
| 14526 | Object.seal(this); |
| 14527 | } |
| 14528 | |
| 14529 | (0, _createClass2.default)(VertexArray, [{ |
| 14530 | key: "delete", |
nothing calls this directly
no test coverage detected