Registry / other / glium
library0.36.0rscratesunverified

Elegant and safe OpenGL wrapper for Rust, providing a modern graphics API.

# Cargo.toml [dependencies] glium = "0.36.0"
INSTALL
IMPORT
SIG · GLIUM
G
glium
otherrustv0.36.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.

Display
use glium::Display;

Creates a glium Display and prints the OpenGL version.

use glium::Display; fn main() { let event_loop = glium::glutin::event_loop::EventLoop::new(); let display = Display::new(glium::glutin::window::WindowBuilder::new(), glium::glutin::ContextBuilder::new(), &event_loop).unwrap(); println!("OpenGL version: {}", display.get_opengl_version_string()); }
Debug
Known issues
gotchaRequires a windowing system and OpenGL drivers; may not work in headless environments.
fix
Ensure a graphical environment is available or use a virtual framebuffer like Xvfb.
affects: >=0.36.0
Upgrade
Version history
0.36.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
glium — cargo add glium · libregistry