[rust-dev] OpenGL: gl-rs updated with command line generation options

Brendan Zabarauskas bjzaba at yahoo.com.au
Fri Sep 27 18:10:02 PDT 2013


gl-rs[1] 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[2]. My 
handle is 'bjz'.

Hopefully this helps to give Rust an extra boost in the realm of high-performance graphics!


Regards,

Brendan Zabarauskas


[1]: https://github.com/bjz/gl-rs
[2]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-gamedev


More information about the Rust-dev mailing list