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
1 answer

It's possible to implement EGL from a programmer perspective?

EGL looks like the worst documented Khronos project ever, I literally can't find nothing specific about this project but it looks promising and finally there is a standardized alternative to GLUT/FreeGlut. My point is, suppose that I want an EGL…
user1797612
  • 812
  • 6
  • 22
4
votes
2 answers

eglCreateWindowSurface on ICS, and switching from 2D to 3D

I'm trying to make an NDK-based game work on Android ICS. It worked fine on Honeycomb and Gingerbread. The game uses some 2D rendering, some 3D rendering, switching between the two at various stages of execution. (This is not negotiable due to…
David Given
  • 13,277
  • 9
  • 76
  • 123
4
votes
0 answers

How to find out maximum EGL current contexts?

Egl documentation states: If binding context would exceed the number of current contexts of that client API type supported by the implementation, an EGL_BAD_ACCESS error is…
itsnothingg
  • 98
  • 1
  • 5
4
votes
0 answers

Select Wayland output for QT application

I am running QT 5.11.3 on a TI embedded platform (AM5728). My display manager is wayland 1.16 (weston). The QPA for my application is Wayland-Egl. The embedded system has both an LCD panel & HDMI output. Both are recognized and treated as…
vix
  • 111
  • 2
4
votes
0 answers

eglCreateImage vs eglCreateImageKHR

I'm trying to compile a gbm egl example but my EGL library doesn't have the eglCreateImageKHR symbols defined. Can i swap these out for eglCreateImage? What are the differences between these two functions?
default
  • 2,637
  • 21
  • 44
4
votes
1 answer

fatal error: EGL/egl.h: No such file or directory

I had compiled SDL 2.0 source. First, I commended 'cmake ../ -G "MinGW Makefiles" on console. Second, I commended 'make'. but error is happned. fatal error: EGL/egl.h: No such file or directory Where can I download EGL/egl header and library? My…
Gakgu
  • 123
  • 4
  • 9
4
votes
2 answers

Can't successfully start Kivy applications on Raspberry Pi 3 with 3.5 in Touchscreen

I followed every guide I could find on installing Kivy to Raspberry Pi. My touchscreen works totally fine, I don't think Kivy not launching properly has anything to do with the that. Trying to launch various Kivy demos will result in what seems to…
Matt Takao
  • 2,406
  • 3
  • 16
  • 30
4
votes
2 answers

Vulkan Fitting with EGL

There seems to be lot of buzz regarding Vulkan the new graphics API - https://www.khronos.org/vulkan My question is related to - How well existing EGL interface will accommodate the Vulkan API ?, With Vulkan new stateless approach, Will EGL have to…
SriLakshmi
  • 77
  • 1
  • 4
4
votes
2 answers

Can EGL application run in console mode?

I want to implement an opengl application which generates images and I view the image via a webpage. the application is intended to run on a linux server which has no display, no x windows, but with gpu. I know that egl can use pixmap or pbuffer as…
Bill Yan
  • 3,369
  • 4
  • 27
  • 42
4
votes
1 answer

what is wrong when i use Eglimage replace glreadpixels in NDK program?

//step 2. Create the Android Graphic Buffer GraphicBuffer* buffer = new GraphicBuffer(w, h, HAL_PIXEL_FORMAT_RGBA_8888, GraphicBuffer::USAGE_HW_TEXTURE | GraphicBuffer::USAGE_HW_2D | GRALLOC_USAGE_SW_READ_OFTEN | …
Firemky
  • 163
  • 1
  • 1
  • 5
4
votes
2 answers

EGLImages with renderbuffer as source sibling and texture as target sibling

I am trying to setup an EGLImage where the source sibling is a GL_RENDERBUFFER (the EGLClientBuffer specified as an argument to eglCreateImageKHR). In another context, I create a GL_TEXTURE_2D and specify it as the target sibling of the EGLImage by…
Buzzy
  • 3,618
  • 4
  • 30
  • 41
4
votes
1 answer

Difference from eglCreatePbufferSurface and eglCreatePixmapSurface with OpenGL ES(EGL)

I am having a problem where I need to some off-screen work with opengl es2 by software rendering(Only has CPU, no GPU). The question is can I use pbuffer without GPU? Also, how to directly save to a png file after drawing something. Please help and…
leon_ALiang
  • 79
  • 1
  • 5
4
votes
1 answer

EGL working on Linux but not on Android

I have EGL/GLES 2.0 code, which I try to run on Linux (via Mesa) and Android (iOS to come). On Linux it works fine and renders like expected. Running on Android (Phone, tablet and emulator - all 4.01) it passes fine but displays nothing (screen…
abergmeier
  • 13,224
  • 13
  • 64
  • 120
3
votes
2 answers

Type 'EGL_DEFAULT_DISPLAY' could not be resolved error while constant is clearly defined

I'm working on a native activity app for Android 2.3.3. I've copied the code from the code samples, I have include paths set, but Eclipse (Indigo) still can't find this constant. EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); //Type…
Remc4
  • 1,044
  • 2
  • 12
  • 24
3
votes
1 answer

How to set OpenGL version in either EGL or GLSurfaceView?

For the OpenGL Android project I am working on, I need ES 2.0, but I need the control of rendering buffers/surfaces I am accustomed to achieving by using EGL. For I cannot figure out any way to render to an offscreen buffer using GLSurfaceView, and…
Matt J.
  • 400
  • 1
  • 4
  • 15