Agora Java API Reference for Android
Public Member Functions | List of all members
io.agora.rtc.video.RendererCommon.GlDrawer Interface Reference
Inheritance diagram for io.agora.rtc.video.RendererCommon.GlDrawer:
io.agora.rtc.video.GlRectDrawer

Public Member Functions

void drawOes (int oesTextureId, float[] texMatrix, int x, int y, int width, int height)
 
void drawRgb (int textureId, float[] texMatrix, int x, int y, int width, int height)
 
void drawYuv (int[] yuvTextures, float[] texMatrix, int x, int y, int width, int height)
 
void release ()
 

Detailed Description

Interface for rendering frames on an EGLSurface.

Member Function Documentation

◆ drawOes()

void io.agora.rtc.video.RendererCommon.GlDrawer.drawOes ( int  oesTextureId,
float []  texMatrix,
int  x,
int  y,
int  width,
int  height 
)

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.

Implemented in io.agora.rtc.video.GlRectDrawer.

◆ release()

void io.agora.rtc.video.RendererCommon.GlDrawer.release ( )

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

Implemented in io.agora.rtc.video.GlRectDrawer.