SDL 2 and OpenGL ES on Windows

Hi,

I develop a port of graphics engine for Emscripten,
so need a Windows environment to debug code and then put on the web using
Emscripten ( which has SDL support, though SDL2 is only in development ).

Current release of SDL 2.0 lacks support for OpenGL ES on windows, but
there is such https://github.com/fantasydr/sdl-gles
fork which provides OpenGL ES 2.0 support on Windows via Angle project.

I put changed files into archive

http://www.sim-ai.org/SDL2-2.0.0.zip

the included changed files are in \SDL2-2.0.0\src\video\windows
SDL_windowswindow.c SDL_windowsopengl.c in \SDL2-2.0.0\include
SDL_config_windows.h

newly added files in SDL2-2.0.0\src\video\windows are SDL_windowsopengles.c
SDL_windowsopengles.h
also SDL2-2.0.0\include\SDL_config_windows.h is changed

( only visual studio 2012 project file has been changed to include new
files ),

if anything like this can go into update to SDL 2.0 I would be very glad
not to have a separate download for users of my Emscripten port of graphics
library which uses SDL.

Regards
Sergey
https://github.com/fantasydr/sdl-gles

2013/9/5 Sergey Kurdakov <sergey.forum at gmail.com>

Hi,

I develop a port of graphics engine for Emscripten,
so need a Windows environment to debug code and then put on the web using
Emscripten ( which has SDL support, though SDL2 is only in development ).

Current release of SDL 2.0 lacks support for OpenGL ES on windows, but
there is such https://github.com/fantasydr/sdl-gles
fork which provides OpenGL ES 2.0 support on Windows via Angle project.

I put changed files into archive

http://www.sim-ai.org/SDL2-2.0.0.zip

the included changed files are in \SDL2-2.0.0\src\video\windows
SDL_windowswindow.c SDL_windowsopengl.c in \SDL2-2.0.0\include
SDL_config_windows.h

newly added files in SDL2-2.0.0\src\video\windows are
SDL_windowsopengles.c SDL_windowsopengles.h
also SDL2-2.0.0\include\SDL_config_windows.h is changed

( only visual studio 2012 project file has been changed to include new
files ),

if anything like this can go into update to SDL 2.0 I would be very glad
not to have a separate download for users of my Emscripten port of graphics
library which uses SDL.

Regards
Sergey
https://github.com/fantasydr/sdl-gles

It seems that that fork is pre “common EGL code”, so we won’t be able to
directly pick up the changes. The good news is that with the common EGL
code and ANGLE’s support for EGL it shouldn’t be too hard to do. Feel free
to add an issue in Bugzilla so we can keep track of this.–
Gabriel.

Hi Gabriel,

It seems that that fork is pre “common EGL code”, so we won’t be able to

directly pick up the changes. The good news is that with the common EGL
code and ANGLE’s support for EGL it shouldn’t be too hard to do. Feel free
to add an issue in Bugzilla so we can keep track of this.

ok, will find SDL Bugzilla and file there an issue.

Regards
Sergey