| Crates.io | opengl-registry |
| lib.rs | opengl-registry |
| version | 0.2.0 |
| created_at | 2023-03-05 20:14:37.612306+00 |
| updated_at | 2023-04-02 19:17:11.473574+00 |
| description | Rust API for the OpenGL API and Extension Registry |
| homepage | |
| repository | https://git.hampusmat.com/opengl-registry-rs |
| max_upload_size | |
| id | 801694 |
| size | 2,832,157 |
Rust API for the OpenGL API and Extension Registry.
include-xml: Include the registry XML file as a &'static str (Enabled by default)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());
}
}