I switched my code to EGL and it seems to work fairly well. One thing I did 
not realize is that you don't actually need to use any platform API to 
create a window in emscripten, as that occurs automatically. All creating a 
window does is resize the canvas, which can be done via 
emscripten_set_canvas_size, and otherwise you don't need any windowing API 
like you normally would with EGL. One thing I noticed on the EGL wiki page 
is that it says that queries to EGL_WIDTH and EGL_HEIGHT are not supported, 
though this appears in the linked issue to have been fixed. Is this 
supported or not in the current implementation?

On Tuesday, February 11, 2014 3:22:30 AM UTC-8, jj wrote:
>
> The page on EGL should be up to date. I use EGL for my engine, which has 
> the benefit that the same code can be shared with Android. GLFW on the 
> other hand can initialize on desktops as well. For Emscripten purposes, 
> both should work just fine. Perhaps see the tests/ directory on the example 
> code to initialize using those, and decide from there which you prefer 
> better?
>
>    Jukka
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to