Results 1 to 2 of 2

Thread: Offscreen pixmap

  1. #1

    Offscreen pixmap


    I need to create an off screen pixmap for my application and would like to find the most efficient way using OpenGL ES 2.0 / EGL with X windows. I have come across several options and would like to understand the advantages and at the very least the best solution. The possibilities I came across are:

    1. Native X windows implementation using XCreatePixmap/XPutImage/XCopyArea
    2. EGL implementation eglCreatePixmapSurface...
    3. Using a FBO - glGenFramebuffersEXT...

    Thanks a lot for any feedback.

  2. #2
    Junior Member
    Join Date
    Oct 2011

    Re: Offscreen pixmap

    The first 2 things are OS-dependent. GLES2 supports framebuffer functions, so you do not need to use glGenFramebuffersEXT, glGenFramebuffers is part of the core api. This is certainly the way you want to go. Generate framebuffers, attach a renderbuffer or a texturebuffer to it with the resolution you want, draw, then read it using glReadPixels, or pass it to a shader as a texture object.. plenty of options.

    BTW I am not sure that GLES2 is supported on x-windows, perhaps you are intending to use desktop GL?

Similar Threads

  1. Combine EGL Pixmap Surface and native Pixmap
    By manojgopal79 in forum OpenGL ES
    Replies: 2
    Last Post: 05-06-2008, 11:51 AM
  2. Offscreen rendering with pbuffers in es 2.0
    By freber in forum OpenGL ES
    Replies: 2
    Last Post: 09-18-2007, 12:15 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
Proudly hosted by Digital Ocean