Skip to content

A low-level library for OpenGL context creation

License

Notifications You must be signed in to change notification settings

valaphee/glutin

This branch is 14 commits behind rust-windowing/glutin:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1b30cd7 · Sep 11, 2024
Sep 2, 2024
Jun 8, 2024
Sep 11, 2024
Jun 8, 2024
Sep 10, 2024
Jun 8, 2024
Jun 8, 2024
Jun 8, 2024
Jul 27, 2014
Nov 12, 2022
Sep 11, 2024
Aug 16, 2023
Nov 12, 2022
Jun 8, 2024
Mar 13, 2024
Sep 3, 2022

Repository files navigation

glutin - OpenGL, UTilities, and INput

A low-level library for OpenGL context creation.

Docs.rs

Contact Us

Join us in any of these:

Matrix Libera.Chat

Usage Examples

Warning: These are examples for master. You can find examples for the latest released version here.

The examples use gl_generator to generate OpenGL bindings.

Try it!

git clone https://github.com/rust-windowing/glutin
cd glutin
cargo run --example window

Usage

Glutin is an OpenGL context creation library, and doesn't directly provide OpenGL bindings for you.

For examples, please look here.

Note that glutin aims at being a low-level brick in your rendering infrastructure. You are encouraged to write another layer of abstraction between glutin and your application.

Glutin follows winit's MSRV policy.

Platform-specific notes

Android

Be sure to handle Android's lifecycle correctly when using a winit window by only creating a GL surface after winit raises Event::Resumed, and destroy it again upon receiving Event::Suspended. See this in action in the android.rs example.

To compile and run the Android example on your device, install cargo-apk and start the app using:

$ cargo apk r -p glutin_examples --example android

About

A low-level library for OpenGL context creation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%