123456789101112131415161718192021222324252627 |
- var __extends = (this && this.__extends) || function (d, b) {
- for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
- var BABYLON;
- (function (BABYLON) {
- /**
- * This is the class that is used to display a World Space Canvas into a 3D scene
- */
- var WorldSpaceCanvas2DNode = (function (_super) {
- __extends(WorldSpaceCanvas2DNode, _super);
- function WorldSpaceCanvas2DNode(name, scene, canvas) {
- _super.call(this, name, scene);
- this._canvas = canvas;
- }
- WorldSpaceCanvas2DNode.prototype.dispose = function () {
- _super.prototype.dispose.call(this);
- if (this._canvas) {
- this._canvas.dispose();
- this._canvas = null;
- }
- };
- return WorldSpaceCanvas2DNode;
- }(BABYLON.Mesh));
- BABYLON.WorldSpaceCanvas2DNode = WorldSpaceCanvas2DNode;
- })(BABYLON || (BABYLON = {}));
|