Registry / other / gl-loader

gl-loader

JSON →
library0.1.2rscratesunverified

A simple OpenGL function pointer loader based on Glad.

# Cargo.toml [dependencies] gl_loader = "0.1.2"
INSTALL
IMPORT
SIG · GL-LOADER
G
gl-loader
otherrustv0.1.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.

GlLoader
use gl_loader::GlLoader;

Load OpenGL function pointers.

use gl_loader::GlLoader; fn main() { let loader = GlLoader::new(); loader.load(); // Now OpenGL functions are available }
Debug
Known issues
gotchaRequires an active OpenGL context before loading.
fix
Ensure a valid OpenGL context is created (e.g., via GLFW or SDL) before calling load().
affects: >=0.1.0
Upgrade
Version history
0.1.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources
gl-loader — cargo add gl-loader · libregistry