Registry / other / gl-generator

gl-generator

JSON →
library0.14.0rscratesunverified

Generates Rust bindings to the Khronos OpenGL APIs from XML specifications.

# Cargo.toml [dependencies] gl_generator = "0.14.0"
INSTALL
IMPORT
SIG · GL-GENERATOR
G
gl-generator
otherrustv0.14.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Registry
use gl_generator::Registry;

Generate OpenGL 4.6 core bindings to a file.

use gl_generator::{Registry, Api, Profile, Fallbacks, GlobalGenerator}; use std::fs::File; let mut file = File::create("gl_bindings.rs").unwrap(); let registry = Registry::new(Api::Gl, (4, 6), Profile::Core, Fallbacks::All, []); registry.write_bindings(GlobalGenerator, &mut file).unwrap();
Debug
Known issues
gotchaGenerated bindings may require specific OpenGL driver support.
fix
Ensure the target system supports the requested OpenGL version.
affects: *
Upgrade
Version history
0.14.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
gl-generator — cargo add gl-generator · libregistry