Registry / other / gl
library0.14.0rscratesunverified

OpenGL bindings for Rust, providing raw FFI to OpenGL functions.

# Cargo.toml [dependencies] gl = "0.14.0"
INSTALL
IMPORT
SIG · GL
G
gl
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.

GLuint
use gl::types::GLuint;

Import and use OpenGL types.

use gl::types::GLuint; fn main() { let texture: GLuint = 0; println!("OpenGL type available: {}", texture); }
Debug
Known issues
gotchaRequires a valid OpenGL context (e.g., via glutin or sdl2) before calling any functions.
fix
Initialize a window and OpenGL context before using gl functions.
affects: >=0.1.0
Upgrade
Version history
0.14.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Meta
1
Resources
gl — cargo add gl · libregistry