webgl-render-vap.d.ts 820 B

12345678910111213141516171819202122232425262728293031323334
  1. import { VapConfig } from "./type";
  2. import VapVideo from './video';
  3. export default class WebglRenderVap extends VapVideo {
  4. constructor(options: VapConfig);
  5. private insType;
  6. private textures;
  7. private buffers;
  8. private shaders;
  9. private vapFrameParser;
  10. private resources;
  11. private instance;
  12. private program;
  13. private videoTexture;
  14. private aPosition;
  15. private aTexCoord;
  16. private aAlphaTexCoord;
  17. private _imagePos;
  18. init(): Promise<void>;
  19. setCanvas(): void;
  20. initWebGL(): any;
  21. /**
  22. * 顶点着色器
  23. */
  24. initVertexShader(): any;
  25. /**
  26. * 片元着色器
  27. */
  28. initFragmentShader(): any;
  29. initTexture(): void;
  30. initVideoTexture(): void;
  31. drawFrame(_: any, info: any): void;
  32. destroy(): void;
  33. clearMemoryCache(): void;
  34. }