Hi Community,
Is there any simple sample example available in order to create Pixmap surface ?
I am using Mali400 & LInux as OS. My backend/Windowing System is X11. I tried to look into ARM SDK/emulator but coudnt find any example C code.
Thanks,
VK
Hi Vaibhav,
You can create a Pixmap surface in X11 using the XCreatePixmap function.
pixmap = XCreatePixmap(display, window, width, height, depth);
The function returns a Pixmap object that can be passed into eglCreateImage as EGLClientBuffer parameter to associate an eglImage to the Pixmap.
eglCreateImageKHR(eglDisplay, EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, reinterpret_cast<EGLClientBuffer> pixmap , imageAttributes));
You can then connect the EGLImage to a GLES Texture using glEGLImageTargetTexture2DOES and render to the texture using the GPU as an example.
Regards,
Daniele