瀏覽代碼

Add jsdoc to `autoUpdateTexture` and `video`

Edgar Simson 7 年之前
父節點
當前提交
c9cd20f70f
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      src/Materials/Textures/babylon.videoTexture.ts

+ 9 - 2
src/Materials/Textures/babylon.videoTexture.ts

@@ -42,8 +42,15 @@
     };
 
     export class VideoTexture extends Texture {
-        readonly autoUpdateTexture: boolean;
-        readonly video: HTMLVideoElement;
+        /**
+         * Tells whether textures will be updated automatically or user is required to call `updateTexture` manually
+         */
+        public readonly autoUpdateTexture: boolean;
+
+        /**
+         * The video instance used by the texture internally
+         */
+        public readonly video: HTMLVideoElement;
 
         private _generateMipMaps: boolean;
         private _engine: Engine;