   bind EGL surface to a ptr in memory
  Hi,I am trying to bind the egl surface to a heap memory allocated in RAMwith either new or malloc. Then bind this pointer to anativeWindowType. The use opengl api's to render the image in this block,so later on I can share the memory block as a  screen anr image capture, etc...I found something close in android srchttp://www.netmite.com/android/mydroid/frameworks/base/include/GLES/eglnatives.hbut I dont really know how to bind this.surface = eglCreateWindowSurface(display, config, nativeWindowType, NULL);Thx.   