7 releases
0.2.1 | Mar 8, 2021 |
---|---|
0.2.0 |
|
0.1.1 | Sep 17, 2020 |
0.1.0 | Aug 9, 2020 |
0.0.0 | Jul 18, 2020 |
#464 in Graphics APIs
217 downloads per month
Used in 6 crates
2.5MB
10K
SLoC
Contains (Windows DLL, 1.5MB) SDL2.dll
gl33
Bindings to OpenGL 3.3
Stability
The gl33
crate presents OpenGL 3.3 bindings for Rust, as described by gl.xml.
It's very unlikely that an update to GL 3.3 would ever be released that would cause a breaking change.
lib.rs
:
Makes the OpenGL 3.3 Core API (+GL_KHR_debug) available for use.
The crate's interface is provided as a "struct" style loader. Construct a
GlFns
using an appropriate get_proc_address
function, and then call
methods on your GlFns
.
There's also a "global" style loader if the global_loader
feature is
enabled. This lets you load up functions pointers that can be freely
accessed from anywhere.
Inlining
This crate does not use the #[inline]
attribute. If you want full
inlining just turn on Link-Time Optimization in your cargo profile:
[profile.release]
lto = "thin"
trace_caller
If the trace_caller
feature is enables then this attribute is placed on
any function that can panic. A panic will only happen if you call a function
that is not loaded.