2 unstable releases
Uses old Rust 2015
0.2.0 | Nov 4, 2018 |
---|---|
0.1.0 | Apr 1, 2018 |
#1 in #stdweb
527 downloads per month
Used in 8 crates
(2 directly)
660KB
1.5K
SLoC
webgl_generator
Code generators for creating bindings to the WebGL APIs.
Usage
See tests/test_webgl_stdweb
for an example of how to use these generators.
Generator types
Stdweb generator
The stdweb generator is currently the only supported webgl generator. This generator
uses stdweb
to bind the relevant javascript APIs, and integrates with the stdweb
RenderingContext
trait.
lib.rs
:
A WebGL bindings generator. It defines a function named Registry::write_bindings
which can be
used to generate all constants and functions of a given WebGL version.
See the webgl
crate for an example of use.
Dependencies
~9MB
~155K SLoC