GlRectDrawer

Simplest possible GL shader that just draws frames as opaque quads.

Constructors

Link copied to clipboard
constructor()

Inherited functions

Link copied to clipboard
open fun drawOes(oesTextureId: Int, texMatrix: Array<Float>, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Draw an OES texture frame with specified texture transformation matrix.
abstract fun drawOes(oesTextureId: Int, texMatrix: Array<Float>, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Functions for drawing frames with different sources.
Link copied to clipboard
open fun drawRgb(textureId: Int, texMatrix: Array<Float>, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Draw a RGB(A) texture frame with specified texture transformation matrix.
abstract fun drawRgb(textureId: Int, texMatrix: Array<Float>, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Link copied to clipboard
open fun drawYuv(yuvTextures: Array<Int>, texMatrix: Array<Float>, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Draw a YUV frame with specified texture transformation matrix.
abstract fun drawYuv(yuvTextures: Array<Int>, texMatrix: Array<Float>, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Link copied to clipboard
open fun release()
Release all GLES resources.