Hi Group
I have two Queries :
- I would like to know whether the Redering API’s (OpenGLES and OPENVG) can render to the same surface …in other words …whether the below sequence will work :
########################################3
//initialize EGL
eglBindAPI(EGL_OPENVG_API);
egldisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
eglInitialize(egldisplay, NULL, NULL);
eglChooseConfig(egldisplay, s_configAttribs, &eglconfig, 1, &numconfigs);
eglsurface = eglCreateWindowSurface(egldisplay, eglconfig, (void*)window, NULL);
eglcontext = eglCreateContext(egldisplay, eglconfig, NULL, NULL);
eglMakeCurrent(egldisplay, eglsurface, eglsurface, eglcontext);
// Some VG CALLS OF THE APPLICATION
-----
-----
-----
//De Associating the context
eglMakeCurrent(egldisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
//Calling the EGL BIND API for binding OpenGl ES rendering API’s calls
eglBindAPI(EGL OPENGL ES API);
eglcontext = eglCreateContext(egldisplay, eglconfig, NULL, NULL);
eglMakeCurrent(egldisplay, eglsurface, eglsurface, eglcontext);
// Again call OPENGLES API calls by app
-------------
-------------
#############################################
- Is there an OpenGLES and OpenVG software implementation with a single EGL for bind to both of them ?
Thanks in Advance.
Regards
Ajay.V