webgl-render-vap.d.ts 872 B

1234567891011121314151617181920212223242526272829303132
  1. import { VapConfig } from './type';
  2. import VapVideo from './video';
  3. export default class WebglRenderVap extends VapVideo {
  4. private canvas;
  5. private gl;
  6. private vertexShader;
  7. private fragmentShader;
  8. private program;
  9. private textures;
  10. private buffers;
  11. private vapFrameParser;
  12. private aPosition;
  13. private aTexCoord;
  14. private aAlphaTexCoord;
  15. private _imagePos;
  16. constructor(options?: VapConfig);
  17. play(options?: VapConfig): this;
  18. initWebGL(): any;
  19. /**
  20. * 顶点着色器
  21. */
  22. initVertexShader(gl: WebGLRenderingContext): WebGLShader;
  23. /**
  24. * 片元着色器
  25. */
  26. initFragmentShader(gl: WebGLRenderingContext): WebGLShader;
  27. initTexture(): void;
  28. initVideoTexture(): void;
  29. drawFrame(_: any, info: any): void;
  30. clear(): void;
  31. destroy(): void;
  32. }