Adds initial Emscripten support to Cogl

This enables basic Emscripten support in Cogl via the SDL winsys.
Assuming you have setup an emscripten toolchain you can configure Cogl
like this:

 emconfigure ./configure --enable-debug --enable-emscripten

Building the examples will build .html files that can be loaded directly
by a WebGL enabled browser.

Note: at this point the emscripten support has just barely been smoke
tested so it's expected that as we continue to build on this we will
learn about more things we need to change in Cogl to full support this
environment.

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit a3bc2e7539391b074e697839dfae60b69c37cf10)
This commit is contained in:
Robert Bragg
2013-04-28 02:42:24 +01:00
parent d39f4b8a16
commit 0e7a632e13
13 changed files with 408 additions and 103 deletions

View File

@ -26,8 +26,8 @@
#endif
#include <stdlib.h>
#include <glib/gi18n-lib.h>
#include "cogl-i18n-private.h"
#include "cogl-private.h"
#include "cogl-debug.h"
#include "cogl1-context.h"