Indeed, the version included with Emscripten is a mix between 1.2 and 2.0, 
which is called 1.3. There are some threads about the differences here and 
on GitHub issues.

In your C++ code, try to use SDL 2 where possible. You might hit a few 
problems (with keyboard handling for instance), but the overall support is 
great and all the rendering compatibility layer is taking care of by 
Emscripten.

AFAIK, complete SDL 2 support has been requested a few times, but nobody 
has started work on it yet.

On Wednesday, April 2, 2014 6:11:15 AM UTC+2, msc wrote:
>
>  I am about to try SDL to make a portable application. libsdl.org has 
> downloads for 2 versions: 1.2 & 2.0. I want to find out which version 
> Emscripten supports. I looked at SDL_version.h included in the Emscripten 
> 1.12 SDK. It says 1.3. Eh? What's that? I looked on the Emscripten wiki but 
> found no answer about the supported version. I searched libsdl.org for 
> 1.3 and found nothing.
>  
> To add to the confusion, libsdl.org lists OpenGL ES support as one of the 
> new features in SDL 2.0 but, as far as I know, Emscripten supports using 
> SDL with OpenGL ES. I need to support OpenGL ES in the native version of 
> the app. so it looks like I need to use SDL 2.0.
>  
> If Emscripten does not support 2.0, is there any plan to do so?
>  
> How can I currently build an OpenGL ES app for both native and Emscripten 
> environments using SDL?
>  
> Regards
>
>     -Mark
>  

-- 
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/d/optout.

Reply via email to