Example of how to setup a textured triangle in webassembly-opengl
Run build.sh to compile the example. This will create three files: index.data, index.js and index.wasm. To see the example run publish all the index.* files (4 total) into a subdirectory in your webserver.
Its pretty much the bare minimum to setup a textured triangle. Does not use SDL and opts for the WebGL approach to OpenGL.