Browse Source

Add jsdoc to `autoUpdateTexture` and `video`

Edgar Simson 7 years ago
parent
commit
c9cd20f70f
1 changed files with 9 additions and 2 deletions
  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;