Results 1 to 3 of 3

Thread: eglCopyBuffers - use case

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1

    eglCopyBuffers - use case

    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()?

    Thanks,
    Przemek

  2. #2

    Re: eglCopyBuffers - use case

    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.

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    3

    Re: eglCopyBuffers - use case

    Hi,
    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.

    Kind Regards
    Gaetano

Similar Threads

  1. eglCopyBuffers
    By ivanzhang1031 in forum Cross API and window system integration
    Replies: 3
    Last Post: 05-30-2012, 02:38 AM
  2. eglCopyBuffers() issue. How to save a copy of the image disp
    By tantissimo in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 05-29-2012, 04:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •