opengl-registry

Crates.ioopengl-registry
lib.rsopengl-registry
version0.2.0
sourcesrc
created_at2023-03-05 20:14:37.612306
updated_at2023-04-02 19:17:11.473574
descriptionRust API for the OpenGL API and Extension Registry
homepage
repositoryhttps://git.hampusmat.com/opengl-registry-rs
max_upload_size
id801694
size2,832,157
(HampusMat)

documentation

README

OpenGL-Registry

Latest Version Documentation

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());
    }
}
Commit count: 0

cargo fmt