简体   繁体   中英

Using OpenGL (libGL.so) with EGL context

As far as I know, GLES (libGLES) can work on EGL context and OpenGL (libGL.so) can work on GLX context.

Is it possible to use openGL functions in libGL.so with EGL context?

Or is there any theoretical or practical reason that this can not be done without big effort?

I'm considering the Intel HD graphics, so I can build libGL.so and libEGL out of MESA source code.

Is it possible to use openGL functions in libGL.so with EGL context?

In principle:

eglBindAPI() :

EGLBoolean eglBindAPI(EGLenum api);

...

If api is EGL_OPENGL_API , the current rendering API is set to the OpenGL API .

But note:

EGL_BAD_PARAMETER is generated ... if the specified client API is not supported by the EGL implementation.

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