Questions tagged [egl]

EGL™ 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™ 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 can be implemented on multiple operating systems (such as Android and Linux) and native window systems (such as X and Microsoft Windows). Implementations may also choose to allow rendering into specific types of EGL surfaces via other supported native rendering APIs, such as Xlib or GDI. EGL provides:

  • Mechanisms for creating rendering surfaces (windows, pbuffers, pixmaps) onto which client APIs can draw and share
  • Methods to create and manage graphics contexts for client APIs
  • Ways to synchronize drawing by client APIs as well as native platform rendering APIs.
397 questions
30
votes
5 answers

EGL guide for beginners

I'd like to get into EGL. However, the "only" I've been able to find is the API reference. Searching for "egl guide", "egl tutorial" or "egl for beginners" hasn't succeeded. Does anyone know of a good resource? EGL may not be a "library for…
djsp
  • 2,174
  • 2
  • 19
  • 40
28
votes
3 answers

What is the relationship between EGL and OpenGL?

I'm writing an implementation for OpenVG and OpenGL|ES in Go, both of which depend on the Khronos EGL API, supposedly to ease portability I guess. I'm writing an implementation of OpenVG on top of OpenGL ES for fun and educational reasons - I…
hannson
  • 4,465
  • 8
  • 38
  • 46
28
votes
2 answers

eglMakeCurrent() failed EGL_BAD_ALLOC

I keep on getting this error report: Fatal Exception: java.lang.IllegalStateException eglMakeCurrent failed EGL_BAD_ALLOC android.view.HardwareRenderer$GlRenderer.createSurface ...on my app that is on Play Store. What causes this crash and how can…
Alex Kombo
  • 3,256
  • 8
  • 34
  • 67
20
votes
1 answer

OPENGL ES not working : no Current context

I tried the program as shown in book OpenGL ES2 for Android, but it's not working!! I have tested in Odroid E, samsung s3, samsung y, samsung star!! the gl version suported returns 2, but i get 11-22 15:09:45.804: E/oGl-es v(9047): 2.0:131072 11-22…
nmxprime
  • 1,506
  • 3
  • 25
  • 52
16
votes
3 answers

List screen resolutions using Wayland/Weston

I am porting some tests from X11 to Wayland and there is little to no information on how to list the available resolutions supported. All the examples that use Wayland and EGL manually specify the screen resolution to be used. I would like to list…
000Camus000
  • 199
  • 1
  • 1
  • 7
16
votes
2 answers

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?
user366250
  • 401
  • 2
  • 4
  • 5
13
votes
2 answers

Android EGL/OpenGL ES Frame Rate Stuttering

TL;DR Even when doing no drawing at all, it seems impossible to maintain a 60Hz update rate on an OpenGL ES rendering thread on an Android device. Mysterious spikes frequently crop up (demonstrated in the code at bottom), and every effort that I've…
Bill Roeske
  • 131
  • 1
  • 3
13
votes
1 answer

Android: Is it possible to create a SurfaceTexture without a SurfaceView?

I want to create a SurfaceTexture with an OpenGL texture that I can manage, in a setup similar to this answer. (Quoted here:) Create a texture through OpenGL Pass this texture to the constructor of new SurfaceTexture. Give this new SurfaceTexture…
user1906
  • 2,310
  • 2
  • 20
  • 37
13
votes
1 answer

egl - Can context be shared between threads

Is it allowed to create egl context from main() and render from another thread, given the fact that the context handles are passed from main() to the thread's function?
Iceman
  • 4,202
  • 7
  • 26
  • 39
12
votes
1 answer

Android initialise openGL2.0 context with EGL

I want to do off-screen image processing on Android in native code, so I need create the openGL context in native code by EGL. By EGL, we can create EGLSurface, I can see there are three choices there: * EGL_WINDOW_BIT * EGL_PIXMAP_BIT *…
John
  • 697
  • 1
  • 10
  • 33
11
votes
0 answers

EGL_emulation: eglMakeCurrent fires constantly in Android Studio Logcat

I have Googled EGL_emulation: eglMakeCurrent looking for a solution to why this keeps popping up - but nothing that I can find that really matches what I am doing. There are a couple of unanswered SO questions that touch this subject. But again, I…
user-44651
  • 3,924
  • 6
  • 41
  • 87
11
votes
2 answers

createWindowSurface failed: EGL_BAD_MATCH?

the version android is 2.2.1 the device is a samsung galaxy II the full crash log is: java.lang.RuntimeException: createWindowSurface failed: EGL_BAD_MATCH at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1077) at…
JRowan
  • 6,824
  • 8
  • 40
  • 59
10
votes
3 answers

How to use GraphicBuffer in android ndk

I am asking this with reference to an answer for my question at How to improve opengl es display performance in android . I was trying to build the code which uses GraphicBuffer with ndk-r9d. but It is saying GraphicBuffer is not declared in this…
Kevin K
  • 589
  • 2
  • 7
  • 28
10
votes
1 answer

EGLDisplay on GBM

I want to create an OpenGL context through EGL. As I won't actually draw, I want to use Pbuffers in conjunction with the GBM platform. This is the code (C99): #include #include #include #include #include…
djsp
  • 2,174
  • 2
  • 19
  • 40
10
votes
1 answer

How to access EGL Image directly from Android Surface for use in MediaCodec video decoder?

I'm currently writing an android app where I need to cache video-frames so that I can easily go back and forth with little to no delay. Right now I'm letting android decode the video frame by providing a Surface to the Configure call of the…
Nico Cornelis
  • 103
  • 1
  • 4
1
2 3
26 27