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:
Native X windows implementation using XCreatePixmap/XPutImage/XCopyArea
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.