1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
OpenGL-Registry
Rust API for the OpenGL API and Extension Registry.
Features
include-xml
: Include the registry XML file as a&'static str
(Enabled by default)
Example usage
use opengl_registry::Registry;
let registry = Registry::retrieve().unwrap();
for command in registry.commands() {
println!("Command {}", command.prototype().name());
println!(" Return type: {}", command.prototype().return_type());
println!(" Parameters:");
for param in command.parameters() {
println!(" {} {}", param.get_type(), param.name());
}
}