User avatar
hanzelpeter
Posts: 73
Joined: Mon Jul 09, 2012 11:56 am

Combine OpenVG with OpenGLES2

Wed May 22, 2013 5:47 pm

Hello.

I am planning to do some kind of window manager and I plan to combine OpenVG and OpenGLES2.
My idea is to render OpenVG commands to OpenGL texture and display this texture with EGL/dispmanx.

Does someone knows an example of this. Is this possible to do?

User avatar
Toad King
Posts: 157
Joined: Sun Dec 18, 2011 8:03 pm

Re: Combine OpenVG with OpenGLES2

Thu May 23, 2013 11:37 pm

It's possible, but you have to switch EGL contexts when you want to swap between OpenVG and GLES. I've found if you do it only once a frame or so the overhead of the context switch isn't that bad, but if you do it more you might hit performance issues. There might also be issues with the two contexts using the same window/screen.

http://code.metager.de/source/xref/mesa ... gl/oes_vg/ This code has some example of the context switching as a means of using EGLImage to bind VG images to GLES textures and vice versa.

Return to “Graphics programming”