EglSurfaceBase

open class EglSurfaceBase

Common base class for EGL surfaces.

There can be multiple surfaces associated with a single context.

Inheritors

Functions

Link copied to clipboard
open fun createOffscreenSurface(width: Int, height: Int)
Creates an off-screen surface.
Link copied to clipboard
open fun createWindowSurface(surface: Any)
Creates a window surface.
Link copied to clipboard
open fun getHeight(): Int
Returns the surface's height, in pixels.
Link copied to clipboard
open fun getWidth(): Int
Returns the surface's width, in pixels.
Link copied to clipboard
open fun makeCurrent()
Makes our EGL context and surface current.
Link copied to clipboard
open fun makeCurrentReadFrom(readSurface: EglSurfaceBase)
Makes our EGL context and surface current for drawing, using the supplied surface for reading.
Link copied to clipboard
Release the EGL surface.
Link copied to clipboard
open fun saveFrame(file: File)
Saves the EGL surface to a file.
Link copied to clipboard
open fun setPresentationTime(nsecs: Long)
Sends the presentation time stamp to EGL.
Link copied to clipboard
open fun swapBuffers(): Boolean
Calls eglSwapBuffers.