{"id":58458,"library":"gfx-device-gl","title":"gfx-device-gl","description":"OpenGL backend for gfx-rs","status":"active","version":"0.16.2","language":"rust","source_language":null,"source_url":"https://github.com/gfx-rs/gfx","tags":["opengl","graphics","gfx"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ngfx_device_gl = \"0.16.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add gfx_device_gl","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Device","correct":"use gfx_device_gl::Device;"}],"quickstart":{"code":"use gfx_device_gl::Device;\n\nfn main() {\n    let (device, factory) = Device::new(|s| {\n        // In a real application, create a GL context here\n        unimplemented!()\n    });\n    println!(\"OpenGL device created\");\n}","lang":"rust","description":"Initializes an OpenGL device (requires a GL context)."},"warnings":[{"fix":"Use with a windowing library like glfw or sdl2 to create a context.","message":"Requires an active OpenGL context; cannot be used standalone.","severity":"gotcha","affected_versions":">=0.16.0"}],"env_vars":null,"search_vec":"'backend':6 'devic':3 'gfx':2,9,13 'gfx-device-gl':1 'gfx-rs':8 'gl':4 'graphic':12 'opengl':5,11 'rs':10","created_at":"2026-06-16T16:24:28.744223+00:00","updated_at":"2026-06-16T16:24:28.744223+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gfx-rs/gfx","github":"https://github.com/gfx-rs/gfx","docs":"https://docs.rs/gfx_device_gl/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}