Nick Fitzgerald 0c41c0b432 examples(webgl): stop using old window static methods
These were removed and replaced with normal methods on window and a standalone
function to get the global window.
2018-09-19 13:18:48 -07:00
..
2018-09-17 20:59:26 -07:00
2018-09-17 20:59:26 -07:00
2018-09-17 20:59:26 -07:00
2018-09-17 20:59:26 -07:00
2018-09-17 20:59:26 -07:00
2018-09-17 20:59:26 -07:00
2018-09-17 20:59:26 -07:00
2018-09-17 20:59:26 -07:00

WebGL Example

This directory is an example of using the web-sys crate to interact with a WebGL context.

You can build and run the example with:

$ ./build.sh

(or running the commands on Windows manually)

and then opening up http://localhost:8080/ in a web browser should show a nice triangle.