toggle menu
RootEncoder
androidJvm
switch theme
search in API
encoder
/
com.pedro.encoder.input.gl
/
SurfaceManager
Surface
Manager
@
RequiresApi
(
api
=
Build.VERSION_CODES.JELLY_BEAN_MR2
)
open
class
SurfaceManager
Created by pedro on 9/09/17.
Members
Constructors
Surface
Manager
Link copied to clipboard
constructor
(
)
Properties
egl
Context
Link copied to clipboard
open
val
eglContext
:
EGLContext
egl
Display
Link copied to clipboard
open
val
eglDisplay
:
EGLDisplay
egl
Surface
Link copied to clipboard
open
val
eglSurface
:
EGLSurface
Functions
egl
Setup
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.
is
Ready
Link copied to clipboard
open
fun
isReady
(
)
:
Boolean
make
Current
Link copied to clipboard
open
fun
makeCurrent
(
)
release
Link copied to clipboard
open
fun
release
(
)
Discards all resources held by this class, notably the EGL context.
set
Presentation
Time
Link copied to clipboard
open
fun
setPresentationTime
(
nsecs
:
Long
)
Sends the presentation time stamp to EGL.
swap
Buffer
Link copied to clipboard
open
fun
swapBuffer
(
)