Connecting a Surface to a Screen#
You must use an EGLStream to connect a surface (i.e., a stream surface) to a screen. The surface is the stream producer, and the screen is the stream consumer.
eglGetPlatformDisplayEXT
returns an EGLDisplay handle belonging to a screen as specified by platform argument in the function call.eglMakeCurrent
attaches an EGL rendering context to draw and read an EGL surface. It also binds a context and a surface to the current rendering thread.Steps 6 through 9 in Creating a Stream Surface are required for connecting a stream surface to a screen.
eglGetPlatformDisplayEXT
returns a handle to screen.eglMakeCurrent
binds the handle to the current context and surface.