# SurfaceManager

@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR2)
open class SurfaceManager

Created by pedro on 9/09/17.

## Constructors

SurfaceManager
Link copied to clipboard
constructor()

## Properties

eglContext
Link copied to clipboard
open val eglContext: EGLContext
eglDisplay
Link copied to clipboard
open val eglDisplay: EGLDisplay
eglSurface
Link copied to clipboard
open val eglSurface: EGLSurface

## Functions

eglSetup
Link copied to clipboard
open fun eglSetup()
open fun eglSetup(surface: Surface)
open fun eglSetup(surface: Surface, eglContext: EGLContext)
open fun eglSetup(surface: Surface, manager: SurfaceManager)
open fun eglSetup(width: Int, height: Int, manager: SurfaceManager)
open fun eglSetup(width: Int, height: Int, surface: Surface, eglSharedContext: EGLContext)
Prepares EGL.
isReady
Link copied to clipboard
open fun isReady(): Boolean
makeCurrent
Link copied to clipboard
open fun makeCurrent(): Boolean
release
Link copied to clipboard
open fun release()
Discards all resources held by this class, notably the EGL context.
setPresentationTime
Link copied to clipboard
open fun setPresentationTime(nsecs: Long)
Sends the presentation time stamp to EGL.
swapBuffer
Link copied to clipboard
open fun swapBuffer()