helloworld-sdl2-opengl-emscripten icon indicating copy to clipboard operation
helloworld-sdl2-opengl-emscripten copied to clipboard

Adds Dockerfile to simplify compilation and testing.

Open wernight opened this issue 5 years ago • 0 comments

Updated the README so it should be self-explanatory.

The Dockerfile builds the native binary for Linux and the Wasm, and it serves the web page to test the Wasm locally.

Note that Linux binary isn't fully working for me because it says:

0:1(1): error: syntax error, unexpected NEW_IDENTIFIER
                                                                                                                                  
compile shader failed : No OpenGL context has been made current

Seems that it needs some error checking to debug these issues a bit. See also https://stackoverflow.com/questions/21354301/glsl-syntax-problems-unexpected-new-identifier

wernight avatar May 21 '19 09:05 wernight