This must be a hard thing to do since I haven’t received a reply in months.
ok, going back to your questions, yes, I have some OpenVG code that does what I want, but when I tried it for OpenGL|ES it didn’t work. I am using a proprietary driver, and I was told by them that one of the reasons is that their driver is currently using EGL 1.1 and that they haven’t done the upgrade yet to 1.2, although there’s an even a more recent version, EGL 1.3.
Anyways, if you google for Amanith VG or Hybrid VG you will find this code. They have done their own implementation of the API for the Dekstop. Hope this help.
Because AmanithVG is based on OpenGL / OpenGL ES, a surface context can be created and bound externally (eg: window / pbuffer) through EGL (for embedded platforms) or WGL / AGL / XGL (for desktop platforms).
What you want to do (probably a render to texture), can be achieved binding a pbuffer and render with AmanithVG on it, then use the pbuffer as a texture.