RendererCommon.GlDrawer

tee3.webrtc

## 接口 RendererCommon.GlDrawer

- 所有已知实现类:
    GlRectDrawer
  封闭类:
    RendererCommon

      public static interface RendererCommon.GlDrawer

  Interface for rendering frames on an EGLSurface.

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `drawOes(int oesTextureId, float[] texMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight)` Functions for drawing frames with different sources.
    `void` | `drawRgb(int textureId, float[] texMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight)`
    `void` | `drawYuv(int[] yuvTextures, float[] texMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight)`
    `void` | `release()` Release all GL resources.

- - ### 方法详细资料

    - #### drawOes

          void drawOes(int oesTextureId,
                       float[] texMatrix,
                       int frameWidth,
                       int frameHeight,
                       int viewportX,
                       int viewportY,
                       int viewportWidth,
                       int viewportHeight)

      Functions for drawing frames with different sources. The rendering surface target is implied by the current EGL context of the calling thread and requires no explicit argument. The coordinates specify the viewport location on the surface target.

    - #### drawRgb

          void drawRgb(int textureId,
                       float[] texMatrix,
                       int frameWidth,
                       int frameHeight,
                       int viewportX,
                       int viewportY,
                       int viewportWidth,
                       int viewportHeight)

    - #### drawYuv

          void drawYuv(int[] yuvTextures,
                       float[] texMatrix,
                       int frameWidth,
                       int frameHeight,
                       int viewportX,
                       int viewportY,
                       int viewportWidth,
                       int viewportHeight)

    - #### release

          void release()

      Release all GL resources. This needs to be done manually, otherwise resources may leak.