(gl)
| 12777 | (0, _inherits2.default)(Program, _Resource); |
| 12778 | |
| 12779 | function Program(gl) { |
| 12780 | var _this; |
| 12781 | |
| 12782 | var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
| 12783 | (0, _classCallCheck2.default)(this, Program); |
| 12784 | _this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(Program).call(this, gl, opts)); |
| 12785 | |
| 12786 | _this.stubRemovedMethods('Program', 'v6.0', ['setVertexArray', 'setAttributes', 'setBuffers', 'unsetBuffers', 'use', 'getUniformCount', 'getUniformInfo', 'getUniformLocation', 'getUniformValue', 'getVarying', 'getFragDataLocation', 'getAttachedShaders', 'getAttributeCount', 'getAttributeLocation', 'getAttributeInfo']); // Experimental flag to avoid deleting Program object while it is cached |
| 12787 | |
| 12788 | |
| 12789 | _this._isCached = false; |
| 12790 | |
| 12791 | _this.initialize(opts); |
| 12792 | |
| 12793 | Object.seal((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this))); |
| 12794 | |
| 12795 | _this._setId(opts.id); |
| 12796 | |
| 12797 | return _this; |
| 12798 | } |
| 12799 | |
| 12800 | (0, _createClass2.default)(Program, [{ |
| 12801 | key: "initialize", |
nothing calls this directly
no test coverage detected