简体   繁体   中英

What is EGL And How Can I Use It

Can Anybody explain me what is EGL and what it does?

How can i use EGL with OpenGL-ES On Linux?

Is EGL a Layer Between Hardware And Operating System?

EGL is a window system-independent equivalent to the GLX and WGL APIs, which respectively enable OpenGL support in X and Microsoft Windows. It is an interface between Khronos rendering APIs such as OpenGL ES or OpenVG and the underlying native platform window system. It handles graphics context management, surface/buffer binding, and rendering synchronization and enables high-performance, accelerated, mixed-mode 2D and 3D rendering using other Khronos APIs.

EGL 架构

There is an implementation for Mesa called EGL and covered in the Mesa EGL Wiki . Realistically you can't use XEGL / EGL ,

If you're running on Linux and don't need X then look at Wayland which is a replacement server built on top of MESA.

I think you're best reading up definitive references such as this . I don't see value in paraphrasing that.

There seem to be some Linux implementations referenced in that article. You can't expect folks to give you detailed tutorials here. Instead attempt to use these references and ask specific questions when you get stuck.

Maybe you could view EGL as a kind of dedicated Graphics "OS", personally I see it yet another API, which abstracts graphics.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM