Expand description
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.
Re-exports§
pub use gl_core_types::*;
pub use gl_enumerations::*;
pub use gl_groups::*;
Modules§
- get_
proc_ address gl_get_proc_address
- gl_
core_ types - gl_
enumerations - gl_
groups - global_
loader
Structs§
- GlFns
- A struct that holds all the functions to use OpenGL 3.3 Core.