# eglCreatePBufferFromClientBuffer

**URL:** <https://forums.imgtec.com/t/eglcreatepbufferfromclientbuffer/65>\
**Category:** PowerVR Insider\
**Created:** [April 17, 2008, 9:24am UTC](https://forums.imgtec.com/t/eglcreatepbufferfromclientbuffer/65 "2008-04-17T09:24:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhargavaramudu](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@bhargavaramudu](https://forums.imgtec.com/u/bhargavaramudu)\
**Post date:** [April 17, 2008, 9:24am UTC](https://forums.imgtec.com/t/eglcreatepbufferfromclientbuffer/65/1 "2008-04-17T09:24:44Z")

</div>

Hi,  
  
I have 2 questions:  
  
1)How can i draw on screen, something which i created on pBuffer…ie an image is attached to a pBuffer…and if i want to render it …how can i do it… i guess there are only 2 ways…using glReadPixels&nbsp; or using glCopyPixels.Am i right?  
  
2)  
What does the api eglCreatePBufferFromClientBuffer() do?  
  
Is the surface returned by it an offscreen buffer connected surface or framebuffer connected surface ? It seems it returns&nbsp; a surface which is connected to an offscreen buffer…  
  
Thankyou  
Bhargav

---

<div class="post-metadata">

**Author:** ![xmas](https://avatars.discourse-cdn.com/v4/letter/x/958977/32.png) [@xmas](https://forums.imgtec.com/u/xmas)\
**Post date:** [April 17, 2008, 12:58pm UTC](https://forums.imgtec.com/t/eglcreatepbufferfromclientbuffer/65/2 "2008-04-17T12:58:18Z")

</div>

Hi Bhargav,  
  
  
  
  
  
eglCreatePbufferFromClientBuffer allows you to take a buffer from an EGL client API and encapsulate it as a pbuffer surface. Currently the only supported buffer type is an OpenVG VGimage. This enables such use cases as rendering to a VGimage with OpenGL ES.  
  
  
  
  
  
VGimage is an off-screen buffer, and so are pbuffers.  
  
  
  
  
  
I’m not sure I understand your first question. Could you please rephrase it? Where does the image data come from and where do you want to put it?  
  
  
  
  
  
Regards,  
  
  
GeorgXmas2008-04-17 14:58:34
