MCPcopy Create free account
hub / github.com/microsoft/SandDance / VertexArrayObject

Function VertexArrayObject

docs/tests/v2/es6/js/sanddance.js:14135–14153  ·  view source on GitHub ↗
(gl)

Source from the content-addressed store, hash-verified

14133 }]);
14134
14135 function VertexArrayObject(gl) {
14136 var _this;
14137
14138 var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14139 (0, _classCallCheck2.default)(this, VertexArrayObject); // Use program's id if program but no id is supplied
14140
14141 var id = opts.id || opts.program && opts.program.id;
14142 _this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(VertexArrayObject).call(this, gl, Object.assign({}, opts, {
14143 id: id
14144 })));
14145 _this.hasVertexArrays = VertexArrayObject.isSupported(gl);
14146 _this.buffer = null;
14147 _this.bufferValue = null;
14148
14149 _this.initialize(opts);
14150
14151 Object.seal((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
14152 return _this;
14153 }
14154
14155 (0, _createClass2.default)(VertexArrayObject, [{
14156 key: "delete",

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.65

Tested by

no test coverage detected