engine.videoTexture.d.ts 676 B

1234567891011121314
  1. import type { InternalTexture } from "../../Materials/Textures/internalTexture";
  2. import type { Nullable } from "../../types";
  3. import type { ExternalTexture } from "../../Materials/Textures/externalTexture";
  4. declare module "../../Engines/thinEngine" {
  5. interface ThinEngine {
  6. /**
  7. * Update a video texture
  8. * @param texture defines the texture to update
  9. * @param video defines the video element to use
  10. * @param invertY defines if data must be stored with Y axis inverted
  11. */
  12. updateVideoTexture(texture: Nullable<InternalTexture>, video: HTMLVideoElement | Nullable<ExternalTexture>, invertY: boolean): void;
  13. }
  14. }