/webassembly-opengl-textured_triangle

Example of how to setup a textured triangle in webassembly-opengl

Primary LanguageCThe UnlicenseUnlicense

webassembly-opengl-textured_triangle

Example of how to setup a textured triangle in webassembly-opengl

Quick Start

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.

About the example

Its pretty much the bare minimum to setup a textured triangle. Does not use SDL and opts for the WebGL approach to OpenGL.