4 releases

✓ Uses Rust 2018 edition

0.2.0 Dec 8, 2019
0.2.0-alpha.2 Dec 4, 2019
0.1.6 Dec 2, 2019
0.1.2 Nov 27, 2019
Download history 46/week @ 2020-02-28 24/week @ 2020-03-06 13/week @ 2020-03-13 31/week @ 2020-03-20 22/week @ 2020-03-27 2/week @ 2020-04-03 52/week @ 2020-04-10 25/week @ 2020-04-17 5/week @ 2020-04-24 5/week @ 2020-05-01 2/week @ 2020-05-08 2/week @ 2020-05-15 13/week @ 2020-05-22 23/week @ 2020-05-29 13/week @ 2020-06-05 12/week @ 2020-06-12

166 downloads per month
Used in 2 crates

Zlib license

665KB
19K SLoC

License:Zlib Minimum Rust Version TravisCI crates.io docs.rs

ogl33

Rust loader/bindings for OpenGL 3.3

  • No build.rs stuff, just a plain file.
  • Functions and consts use the real names in the spec
    • Eg: glGetError and GL_NO_ERROR
  • Functions are loaded into global static AtomicPtr values, so loading and usage is thread safe (GL itself still isn't thread safe though!).
  • Cargo features (all off by default):
    • debug_error_checks: Automatic error checking immediately after each call when debug_assertions are on. Logs the arguments you passed to the call the triggered the error as well as as the error that was produced. Very useful!
    • debug_trace_messages: Automatic printing of each function name called just before calling it when debug_assertions are on. Extremely noisy, probably leave it off, but it can help quickly identify where a segfault is coming from so it's available.
    • compatibility_profile: Load the compatibility profile functions.

Dependencies