eglGetCurrentSurface.3G - Man Page

return the read or draw surface for the current EGL rendering context

C Specification

EGLSurface eglGetCurrentSurface(EGLint readdraw);

Parameters

readdraw

Specifies whether to return the read surface (EGL_READ) or the draw surface (EGL_DRAW)​.

Description

eglGetCurrentSurface returns the read or draw surface attached to the current EGL rendering context, as specified by eglMakeCurrent()​. If no context is current, EGL_NO_SURFACE is returned​.

See Also

eglCreatePbufferSurface(), eglCreatePixmapSurface(), eglCreateWindowSurface(), eglMakeCurrent()

Notes

1.

[set $man.base.url.for.relative.links]/KhronosLogo.jpg

Info

11/15/2026 EGL Reference Pages