Crate opengl_registry

Crate opengl_registry 

Source
Expand description

Rust API for the OpenGL API and Extension Registry.

§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());
    }
}

Modules§

command
OpenGL command.

Structs§

ParsingError
Parsing error.
Registry
Representation of the OpenGL registry.

Enums§

RegistryError
Registry error.