DavidLudwig / sg13-research

http://dll.fyi/sg13/
0 stars 0 forks source link

Integrate Cairo's OpenGL ES support #8

Open DavidLudwig opened 6 years ago

DavidLudwig commented 6 years ago

Is a software fallback necessary?

DavidLudwig commented 6 years ago

I am punting on this one for now, at least to beyond the "dependency-test-1" milestone.

Cairo's OpenGL implementation seems to have some deficiencies with regards to Emscripten. In particular, it uses at least one function that Emscripten explicitly does not implement (eglCreatePbufferSurface).

In more detail...

Cairo's GL code requires either GLX, WGL, or EGL. Emscripten has EGL support, however it uses a function, eglCreatePbufferSurface, which Emscripten does not currently support (as indicated in Emscripten's documentation, at https://kripken.github.io/emscripten-site/docs/porting/multimedia_and_graphics/EGL-Support-in-Emscripten.html ).

I suspect that there is a solution, here. Whither creating an SDL2 GL backend for Cairo?