# MainRender

@RequiresApi(api = 18)
class MainRender

Created by pedro on 20/3/22.

## Constructors

MainRender
Link copied to clipboard
constructor()

## Functions

drawFilters
Link copied to clipboard
fun drawFilters(isPreview: Boolean)
drawScreen
Link copied to clipboard
fun drawScreen(width: Int, height: Int, mode: AspectRatioMode, rotation: Int, flipStreamVertical: Boolean, flipStreamHorizontal: Boolean, viewPort: ViewPort?)
drawScreenEncoder
Link copied to clipboard
fun drawScreenEncoder(width: Int, height: Int, isPortrait: Boolean, rotation: Int, flipStreamVertical: Boolean, flipStreamHorizontal: Boolean, viewPort: ViewPort?)
drawScreenPreview
Link copied to clipboard
fun drawScreenPreview(width: Int, height: Int, isPortrait: Boolean, mode: AspectRatioMode, rotation: Int, flipStreamVertical: Boolean, flipStreamHorizontal: Boolean, viewPort: ViewPort?)
drawSource
Link copied to clipboard
fun drawSource()
filtersCount
Link copied to clipboard
fun filtersCount(): Int
getSurface
Link copied to clipboard
fun getSurface(): Surface
getSurfaceTexture
Link copied to clipboard
fun getSurfaceTexture(): SurfaceTexture
initGl
Link copied to clipboard
fun initGl(context: Context, encoderWidth: Int, encoderHeight: Int, previewWidth: Int, previewHeight: Int)
isReady
Link copied to clipboard
fun isReady(): Boolean
release
Link copied to clipboard
fun release()
setCameraFlip
Link copied to clipboard
fun setCameraFlip(isFlipHorizontal: Boolean, isFlipVertical: Boolean)
setCameraRotation
Link copied to clipboard
fun setCameraRotation(rotation: Int)
setFilterAction
Link copied to clipboard
fun setFilterAction(filterAction: FilterAction, position: Int, baseFilterRender: BaseFilterRender)
setPreviewSize
Link copied to clipboard
fun setPreviewSize(previewWidth: Int, previewHeight: Int)
updateFrame
Link copied to clipboard
fun updateFrame()