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

Function Framebuffer

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

Source from the content-addressed store, hash-verified

10927 }]);
10928
10929 function Framebuffer(gl) {
10930 var _this;
10931
10932 var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10933 (0, _classCallCheck2.default)(this, Framebuffer);
10934 _this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(Framebuffer).call(this, gl, opts)); // Public members
10935
10936 _this.width = null;
10937 _this.height = null;
10938 _this.attachments = {};
10939 _this.readBuffer = 36064;
10940 _this.drawBuffers = [36064];
10941
10942 _this.initialize(opts);
10943
10944 Object.seal((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
10945 return _this;
10946 }
10947
10948 (0, _createClass2.default)(Framebuffer, [{
10949 key: "initialize",

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.65

Tested by

no test coverage detected