open class EglNativeSurface
getHeight |
Returns the surface's height, in pixels. fun getHeight(): Int |
getWidth |
Returns the surface's width, in pixels. fun getWidth(): Int |
isCurrent |
Whether this surface is current on the attached EglCore. fun isCurrent(): Boolean |
makeCurrent |
Makes our EGL context and surface current. fun makeCurrent(): Unit |
makeNothingCurrent |
Makes no surface current for the attached eglCore. fun makeNothingCurrent(): Unit |
release |
Release the EGL surface. open fun release(): Unit |
setHeight |
Can be called by subclasses whose height is guaranteed to never change, so we can cache this value. For window surfaces, this should not be called. fun setHeight(height: Int): Unit |
setPresentationTime |
Sends the presentation time stamp to EGL. nsecs is the timestamp in nanoseconds. fun setPresentationTime(nsecs: Long): Unit |
setWidth |
Can be called by subclasses whose width is guaranteed to never change, so we can cache this value. For window surfaces, this should not be called. fun setWidth(width: Int): Unit |
EglSurface |
Common base class for EGL surfaces. There can be multiple base surfaces associated with a single EglCore object. abstract class EglSurface : EglNativeSurface |