dudeofx / webassembly-opengl-textured_triangle

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:The Unlicense


Languages

Language:C 89.8%Language:HTML 8.0%Language:Shell 2.2%