You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`gfx` to link against SDL2\_gfx and have access to gfx features
18
+
*`image` to link against SDL2\_image and have access to image reading and writing features
19
+
*`mixer` to link against SDL2\_mixer and have access to sound mixing features
20
+
*`ttf` to link against SDL2\_ttf and have access to various font features
21
+
*`unsafe-textures` to not have a lifetime in `Texture` structs. Texture are only freed when the program exits, or can be done manually through `unsafe`.
22
+
*`use-bindgen` to customize bindings instead of using pre-generated `sdl_bindings` which were created from a Linux environment. It generates your own custom SDL2 bindings, tailored to your distro. Useful for specific window-related scenarios.
23
+
*`use-vcpkg` to pull SDL2 from vcpkg instead of looking in your system.
24
+
*`use-pkgconfig` use pkg-config to detect where your library is located on your system. Mostly useful on unix systems for static linking.
25
+
*`static-link` to link to SDL2 statically instead of dynamically.
26
+
*`use_mac_framework` to use SDL2 from a Framework, on macOS only
27
+
*`bundled`, which pulls the SDL repository and compiles it from source. More information below.
22
28
23
-
The following features are enabled in the documentation:
24
-
* gfx
25
-
* image
26
-
* mixer
27
-
* ttf
29
+
# Documentation
28
30
29
-
The `unsafe_textures` feature is not documented online, you can use `cargo doc` to generate your own documentation
30
-
with this feature enabled.
31
+
[Read the documentation here](https://docs.rs/sdl2/).
31
32
32
33
# Requirements
33
34
@@ -37,7 +38,7 @@ We currently target the latest stable release of Rust.
37
38
38
39
## *SDL2.0 development libraries*
39
40
40
-
SDL2 >= 2.0.14 is recommended to use these bindings; below 2.0.14, you may experience link-time errors as some functions are used here but are not defined in SDL2. If you experience this issue because you are on a LTS machine (for instance, Ubuntu 12.04 or Ubuntu 14.04), we definitely recommend you to use the feature "bundled" which will compile the lastest stable version of SDL2 for your project.
41
+
SDL2 >= 2.0.26 is recommended to use these bindings; below 2.0.26, you may experience link-time errors as some functions are used here but are not defined in SDL2. If you experience this issue because you are on a LTS machine (for instance, Ubuntu), we definitely recommend you to use the feature "bundled" which will compile the lastest stable version of SDL2 for your project.
Copy file name to clipboardExpand all lines: changelog.md
+14-1
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,28 @@
1
1
In this file will be listed the changes, especially the breaking ones that one should be careful of
2
2
when upgrading from a version of rust-sdl2 to another.
3
3
4
-
### Unreleased
4
+
### v0.37.0
5
+
6
+
[PR #1406](https://github.com/Rust-SDL2/rust-sdl2/pull/1406) Update bindings to SDL 2.0.26, add Event.is\_touch() for mouse events, upgrade wgpu to 0.20 in examples
7
+
8
+
[PR #1398](https://github.com/Rust-SDL2/rust-sdl2/pull/1398) Fix bug in rect.shift logic
9
+
5
10
[PR #1404](https://github.com/Rust-SDL2/rust-sdl2/pull/1404) Make `SdlDrop` a zero sized type.
6
11
12
+
[PR #1394](https://github.com/Rust-SDL2/rust-sdl2/pull/1394) Do not pull the SDL repository if not using bundled in build.rs
[PR #1389](https://github.com/Rust-SDL2/rust-sdl2/pull/1389) Fix some undefined behavior.
8
17
9
18
[PR #1378](https://github.com/Rust-SDL2/rust-sdl2/pull/1378)**BREAKING CHANGE** Change `Keycode` to be a struct rather than an enum. Fix `Keycode::from_scancode` for non-QWERTY keyboard layouts.
10
19
11
20
[PR #1390](https://github.com/Rust-SDL2/rust-sdl2/pull/1390) Apply clippy fixes, fix deprecations and other code quality improvements.
12
21
22
+
[PR #1385](https://github.com/Rust-SDL2/rust-sdl2/pull/1385) Upgrade raw-window-handle to 0.6.0
23
+
24
+
[PR #1380](https://github.com/Rust-SDL2/rust-sdl2/pull/1380) Add controller vendor\_id() and product\_id()
25
+
13
26
[PR #1368](https://github.com/Rust-SDL2/rust-sdl2/pull/1368) Remove unnecessary unsafe in Window interface. Make Window `Clone`.
0 commit comments