# glium/glium

Safe OpenGL wrapper for the Rust language.

Repository: https://github.com/glium/glium
Canonical: https://ross.abutalabs.com/products/glium
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust, opengl
Last push: 2025-08-19T12:13:24+00:00

## Health v2 (maintenance only)
Score: 39/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 37, release rhythm 8, longevity 100
- inputs: {"age_days": 4352, "days_push": 379, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3616, forks 399 (observed 2026-08-28T04:08:11.780881+00:00)

## What it is
Glium is a safe, high-level OpenGL wrapper library for Rust that sits between your application and the raw OpenGL API. It enforces Rust idioms like RAII and stateless function calls while handling error-prone OpenGL details such as framebuffer objects, samplers, and vertex array objects automatically.

## Use cases
- render 2D and 3D graphics in Rust without raw OpenGL calls
- write a game or graphics demo in Rust with a safe OpenGL API
- avoid OpenGL crashes and errors from API misuse
- manage vertex buffers, framebuffers, and shaders in Rust
- learn modern OpenGL techniques through a Rust-friendly API
- set up an OpenGL context easily with glutin integration

## When to choose
- you want to use OpenGL from Rust with memory and state safety guarantees
- you prefer a stateless, RAII-based API over raw OpenGL's global state machine
- you need compatibility across many OpenGL versions with a unified API
- you want automatic handling of FBOs, VAOs, and samplers

## When to avoid
- you need a full game engine with scenes, physics, or asset pipelines built in
- you want actively developed cutting-edge graphics features, since the original author has stepped away and maintenance is community-driven
- you prefer Vulkan, wgpu, or other modern graphics APIs instead of OpenGL
- you need guaranteed long-term support from a dedicated maintainer team

## Facets
- artifact type: library
- maturity: maintenance
- function: graphics, game-engine
- domain: graphics, cross-platform
- platform: rust, cross-platform
- tags: opengl, rendering, safe-wrapper, gamedev, shaders, vertex-buffers, game-development, desktop

## Member repositories
- glium/glium (main) score 39

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:11.780881+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:32:00.191179+00:00, confidence not recorded.
  - readme: https://github.com/glium/glium (fetched 2026-08-28T04:08:11.780881+00:00, sha 4cbd46d6b45f)
  - registry_crates: https://crates.io/api/v1/crates/glium (fetched 2026-08-29T09:26:38.962538+00:00, sha a2899986b5e0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
