[rust-dev] OpenGL: gl-rs updated with command line generation options
bjzaba at yahoo.com.au
Fri Sep 27 18:10:02 PDT 2013
gl-rs is an OpenGL function loader for Rust. It exposes the full OpenGL API, loading the function pointers at
runtime to ensure portability between systems with different graphics drivers. This capability is extremely
important for developers who wish to make full use of state-of-the-art graphics hardware.
The recent changes by Corey Richardson allow for the specification of what is generated by the loader. This
means you don't have to generate the entire spec, like you used to (which resulted in a 1.6mb file)
./generator --version 3.3 --profile core
./generator --version 2.1 --extension GL_ARB_robustness --extension GL_EXT_draw_instanced
We have included a 4.3 core profile loader so that you can get up to speed quickly without having to spend time
generating the loader yourself. Hopefully with future updates to rustpkg you will be able to supply the generation
options at the `extern mod` line in your source code.
If you have any issues, questions or suggestions, you can contact me on irc.mozilla.org #rust-gamedev. My
handle is 'bjz'.
Hopefully this helps to give Rust an extra boost in the realm of high-performance graphics!
More information about the Rust-dev