#webgl

webgl_generator

Code generators for creating bindings to the WebGL APIs

2 unstable releases

Uses old Rust 2015

0.2.0 Nov 4, 2018
0.1.0 Apr 1, 2018

#886 in Graphics APIs

Download history 191/week @ 2023-01-26 283/week @ 2023-02-02 69/week @ 2023-02-09 271/week @ 2023-02-16 70/week @ 2023-02-23 155/week @ 2023-03-02 228/week @ 2023-03-09 124/week @ 2023-03-16 121/week @ 2023-03-23 135/week @ 2023-03-30 125/week @ 2023-04-06 68/week @ 2023-04-13 69/week @ 2023-04-20 263/week @ 2023-04-27 127/week @ 2023-05-04 168/week @ 2023-05-11

629 downloads per month
Used in 8 crates (2 directly)

Apache-2.0

660KB
1.5K SLoC

webgl_generator

Version License Downloads

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

~6.5MB
~129K SLoC