_display = eglGetDisplay(<dc goes here>);
eglInitialize(_display, ...);
eglBindAPI(EGL_OPENGL_ES_API);
eglChooseConfig(_display, configAttribs, &__configs); //size is gotten before this
_config = *__configs;
_surface = eglCreateWindowSurface(_display, _config, <window/control handle here>, surfaceAttribs;
_context = eglCreateContext(_display, _config, NULL, contextAttribs);
eglMakeCurrent(_display, _surface, _surface, _context);
eglSwapInterval(_display, 0 or 1);
Rendering:
//OpenGL ES rendering
eglSwapBuffers(_display, _surface)
//Destroying:
eglDestroySurface(_display, _surface);
eglDestroyContext(_display, _context);
eglTerminate(_display);
destroy dc
When I try to destroy the context I get errors as well (I cannot remember exactly which of the top of my head).
--
You received this message because you are subscribed to the Google Groups "angleproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angleproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angleproject/9c7c5893-1f3f-4ff6-aad2-8df7dfe27646n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angleproject/62601d30-cdc1-4d03-8db6-b724d71cdb4bn%40googlegroups.com.