Registry / other / gfx-device-gl

gfx-device-gl

JSON →
library0.16.2rscratesunverified

OpenGL backend for gfx-rs

# Cargo.toml [dependencies] gfx_device_gl = "0.16.2"
INSTALL
IMPORT
SIG · GFX-DEVICE-GL
G
gfx-device-gl
otherrustv0.16.2
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.

Device
✓ use gfx_device_gl::Device;

Initializes an OpenGL device (requires a GL context).

use gfx_device_gl::Device; fn main() { let (device, factory) = Device::new(|s| { // In a real application, create a GL context here unimplemented!() }); println!("OpenGL device created"); }
Debug
Known issues
gotchaRequires an active OpenGL context; cannot be used standalone.
fix
Use with a windowing library like glfw or sdl2 to create a context.
affects: >=0.16.0
Upgrade
Version history
0.16.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
gfx-device-gl — cargo add gfx-device-gl · libregistry