OpenGL to WebGL using Emscripten

Demonstrates the basics of porting desktop graphics apps to the web using Emscripten, via a collection of C++/SDL/OpenGL samples. (README and source).

Full window canvas

Hello Triangle Minimal

Hello Triangle

Hello Texture

Hello Text TTF

Hello Text TXF

Hello Image

Canvas + console

Hello Triangle Minimal Debug

Hello Triangle Debug

Hello Texture Debug

Hello Text TTF Debug

Hello Text TXF Debug

Hello Image Debug


Emscripten GLUT resizing fix

Demonstrates a browser resizing bug in Emscripten's GLUT, along with two potential fixes. (README and source).

Hello World GLES (original without fix)

Hello World GLES (client-side fix)

Hello World GLES (GLUT-side fix)