Home » Android » android – Confusion between OPEN GL ES and EGL library

android – Confusion between OPEN GL ES and EGL library

Posted by: admin June 15, 2020 Leave a comment

Questions:

I was reading android source code in that I am not getting what does OPEN GL ES library do and what does EGL library do.?

Is there any relationship between this two libraries?

I have looked at http://www.khronos.org/opengles/documentation/opengles1_0/html/ but still not getting.

How to&Answers:

EGL is the interface between OpenGL ES and the underlying native display platform. It is used to create & manage rendering surfaces & graphics contexts.

Answer:

EGL is used to manage the various display buffers (ie: images you see on the screen) and the OpenGL ES context. These are necessary to use OpenGL ES. So you can think of EGL as an initialization layer for OpenGL ES.

Answer:

Note that desktop OpenGL has no interaction with EGL, only OpenglES and OpenVG.
Take a look here: Can anyone explain the way the "Khronos stack" of technologies fits together?

Answer:

Open GL is basically an API for creating applications that draw 2D and 3D graphics. EGL allows you to render APIs like OpenGL. You have many pages explaining this, not difficult to find if you google OpenGL and EGL. For example at khronos.

Answer:

If you are familiar with programming OpenGL on Windows, MacOSX or Linux – EGL is similar as what WGL is on Windows, GLX is on Linux and what AGL/CGL is on MacOSX.