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
5
votes
0 answers

Understanding how EGLSurface, EGL, Surface and SurfaceView relate to each other

I'm learning how to use OpenGL ES. I'm not sure if I have clearly understood how the architecture is done when going from drawing something to displaying it. In particular I want to use: EGLSurface EGL SurfaceView There is a component called…
Johann
  • 27,536
  • 39
  • 165
  • 279
5
votes
4 answers

GLSurfaceView.Renderer possible to swap buffers multiple times in onDrawFrame()?

In my openGL game, I draw my scene normally using a GLSurfaceView.Renderer class in the onDrawFrame(). However, when I am displaying a loading screen I would like to force the screen to draw after each item of data is loaded so the loading bar can…
DJPJ
  • 319
  • 1
  • 4
  • 13
5
votes
1 answer

Strange EGL behaviour with X11 and nVidia driver

I have a strange problem at the moment, I have this sample application using GTK2, OpenGL and EGL. The strange behaviour I describe only happens on nVidia GPUs on Linux with the official nVidia driver. In the program you see a comment, if you dont…
Nidhoegger
  • 4,973
  • 4
  • 36
  • 81
5
votes
1 answer

Why egl pixmap surface works with opengl es but not with opengl?

I use EGL with Xlib and OpenGL. While I was drawing straight on the window everything was fine. Now I'm trying to use pixmaps as EGL surface but OpenGL doesn't change it at all. I clean the background with the blue color using OpenGL. Here's what I…
Nolan
  • 1,060
  • 1
  • 11
  • 34
5
votes
3 answers

Failed to create EGL context

I am getting the following crash in few devices and code works fine in few devices. I am not understanding which part of code is creating this crash. It was working fine few days before and all of sudden I am seeing this crash. Can anyone please…
keshav kowshik
  • 2,354
  • 4
  • 22
  • 45
5
votes
1 answer

What replaces GraphicBuffer on Android 7.0?

For fast transfer of texels to/from an EGL surface, we have successfully used GraphicBuffer buffer as described in this thread: How to use GraphicBuffer in android ndk However on Android 7.0 that is not an option. As GraphicBuffer uses the private…
griffin2000
  • 709
  • 9
  • 26
5
votes
2 answers

Android MediaCodec configure error, crash

I'm trying to use mediaCodec for creating mp4 video from openGl ES surface. I have an eglSurface, and the source surface of that eglSurface is MediaCodec input surface. I can have different sizes for eglSurface, and when one size (width or height)…
5
votes
0 answers

Running Weston in a Docker container

I am currently trying to run a instance of Weston within a Docker container. My system is an Ubuntu 16.04, currently running native Weston with DRI backend (I don't want any X11 dependency). So for starters I would like to run another Weston…
japedo
  • 368
  • 3
  • 15
5
votes
0 answers

E/libEGL: cache file failed CRC check

In my application there is MainActivity contains many buttons clicking on which another activity is created with the image. Click on the image is a simple animation zoom. And there is a problem: two images of all at the frequent click crash activity…
MikaAll
  • 143
  • 1
  • 7
5
votes
1 answer

How to create EGL context on NVidia Desktop

I'm looking for a code snipet to create EGL context on desktop NVidia. I'm aware that on Windows, NVidia exposes EGL through extensions WGL_EXT_create_context_es_profile and WGL_EXT_create_context_es2_profile. And on Linux NVidia allows EGL through…
Alex Byrth
  • 1,328
  • 18
  • 23
5
votes
2 answers

pbuffer vs fbo in egl offscreen rendering

I'm very confused at egl pbuffer surface. In my opinion, a pbuffer surface is a platform independent surface, just like the windows surface or the pixmap surface. Things drawn to that surface, although not visible, should be able to be read…
Bill Yan
  • 3,369
  • 4
  • 27
  • 42
5
votes
2 answers

EGL linker errors

I'm trying to link a really simple GLES2 & EGL program using g++ 4.9.1, on a Ubuntu Trusty system. I'm using the mesa libraries. I'm getting linker errors for EGL functions: test.cpp:(.text+0x342): undefined reference to…
Anthony
  • 12,177
  • 9
  • 69
  • 105
5
votes
0 answers

How to Render video via openGLES2 with Android NDK

I made a apk code with NDK to get video frames by ffmpeg decoding, and rendered to opengles 2.0 , but the screen had nothing to display. so did i make a mistake? my opengles2.0 ini code is below: static int window_init_display(void) { EGLint attribs…
wolfz
  • 163
  • 2
  • 9
5
votes
2 answers

EGL/OpenGL ES/switching context is slow

I am developing an OpenGL ES 2.0 application (using angleproject on Windows for developement) that is made up of multiple 'frames'. Each frame is an isolated application that should not interfere with the surrounding frames. The frames are drawn…
Andrew Price
  • 269
  • 1
  • 3
  • 7
5
votes
0 answers

Using EGL Pixel Buffer

I'm on embedded platform Mali400GPU, Ubuntu. I'm trying to use EGL Pixel Buffer, to copy a texture that is rendered using fragment shader to a pixel buffer so that I can do some processing on that buffer on CPU. I have done the following code but…
Andre
  • 363
  • 3
  • 15