#graphics #gamedev #glium #sdl #opengl

glium_sdl2

An SDL2 backend for Glium - a high-level OpenGL wrapper for the Rust language

14 breaking releases

Uses old Rust 2015

0.15.0 Oct 20, 2017
0.13.0 Jan 6, 2017
0.12.0 May 24, 2016
0.10.0 Jan 27, 2016
0.4.0 Jul 10, 2015

#172 in Graphics APIs

Download history 15/week @ 2021-07-04 16/week @ 2021-07-11 37/week @ 2021-07-18 30/week @ 2021-07-25 59/week @ 2021-08-01 27/week @ 2021-08-08 29/week @ 2021-08-15 16/week @ 2021-08-22 2/week @ 2021-08-29 5/week @ 2021-09-05 13/week @ 2021-09-12 14/week @ 2021-09-19 20/week @ 2021-09-26 6/week @ 2021-10-03 30/week @ 2021-10-10 7/week @ 2021-10-17

133 downloads per month

MIT/Apache

32KB
162 lines

glium_sdl2

Build Status Latest Version

An SDL2 backend for Glium - a high-level OpenGL wrapper for the Rust language.

This library, along with glium and rust-sdl2, are in heavy development and are subject to change.

[dependencies]
glium_sdl2 = "0.15"
sdl2 = "0.30"
glium = "0.18"

features = []
default-features = false

glium_sdl2 doesn't reexport the glium or sdl2 crates, so you must declare them with the versions listed above in your Cargo.toml file.

glium_sdl2's version will be bumped once this library, glium or sdl2 make breaking changes.

Documentation

Change log

Example usage

See the examples/ folder for examples. Here's a bare-bones skeleton program that initializes SDL2 and Glium, and does nothing:

Using glium with SDL2 is very similar to using glium with glutin. Generally speaking, Glium documentation and tutorials should be fairly trivial to adapt to SDL2.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~19MB
~409K SLoC

QY