View Full Version : eglCopyBuffers - use case
05-18-2012, 01:00 AM
Hi All, I use eglCopyBuffers to copy color buffer from window surface to a native pixmap.
Whether the function should be started before or after eglSwapBuffers()?
05-22-2012, 10:28 AM
Depends on which buffer you want to copy, the eglCopyBuffers call has an implicit flush. Typically, it's not used with window surfaces. If you were rendering to an egl pbuffer surface you would simply call eglCopyBuffers instead of eglSwapBuffers.
06-04-2012, 08:49 AM
In my project I am using egl library to plot a 3D object to the display and concurrently saving the image in a file or an area of memory.
I'm trying to use eglCopyBuffers() to copy a surface to a pixmap in order to obtain the pixel value that are displayed. I'm using an ARM MALI architecture and I would not want to use X11 but writing directly to GNU/Linux framebuffer.
I have one question: in my method, I pass to eglCopyBuffers function, as 'native_pixmap' parameter, an 'EGLNativePixmapType native_pixmap= NULL'. Is it correct? How should I declare the pixmap if I do not want to use X11 libraries?
Thank you in advance for your advice.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.