Commit Graph
2064 Commits
Author SHA1 Message Date
Cobrand 9a0afae51f Use the proper way to compile SDL2 in release mode 2018-07-08 14:55:09 +00:00
Cobrand e417938218 Prevent warning in sdl2-sys/build.rs 2018-07-08 14:39:32 +00:00
Cobrand 315082a8e3 temporarily fix test_audio_cvt test 2018-07-08 14:32:33 +00:00
Cobrand c555aa9857 Always build SDL2 in release mode 2018-07-07 23:04:09 +00:00
Cobrand 89a7ee21cd Don't try to build features (image,..) when uneeded 2018-06-10 00:18:18 +00:00
Cobrand 0f714d98fc gfxPrimitives_font.h is not part of gfx anymore 2018-06-09 22:23:33 +00:00
Cobrand 1f95a92c74 Fix static linking not working with sdl 2.0.8 2018-06-09 22:23:14 +00:00
Cobrand 083bbfa892 Merge remote-tracking branch 'bgourlie/sdl-upgrade' into unstable-work 2018-06-09 21:43:31 +00:00
Cobrand f8b88c373d Merge branch 'PR765' into unstable-work 2018-06-09 21:43:19 +00:00
Fred MorcosandCobrand 07723632df Implement sdl::get_platform() 2018-06-09 22:53:05 +02:00
W. Brian Gourlie e998692601 Upgrade to SDL 2.0.8 2018-06-09 12:38:54 -05:00
Fred MorcosandCobrand 8a3fd3b1c5 Add a #[must_use] directive to add_timer()
If the result of add_timer is unused, the timer will be dropped immediately and the callback won't fire. A small gotcha but can save some debugging time.
2018-05-18 00:08:07 +02:00
Jon Emil Jahren 8d126f0854 Fix mac target link arguments
It should now be what the old behaviour was. If either mac_framework
or use_mac_framework feature is set then it will use kind=framework, if
not then it will use normal library name link argument.
2018-04-02 14:01:03 +02:00
Jon Emil Jahren 0aab5ef28a Converted SDL_gfx to autogenerated bindings
Renamed the binding files to be consistent.
The build script could probably benefit from a good cleanup.
Closes #647
2018-04-02 11:19:38 +02:00
Jon Emil Jahren a27c3c62a5 Convert SDL_mixer bindings into autogenerated bindings
Progresses on #647
2018-04-02 11:19:22 +02:00
Jon Emil Jahren f2a7b7fd0a Convert SDL_ttf bindings into autogenerated bindings
Had to change some mutability of some raw pointers used, but the ttf
 demo seem to work.

 Progresses on #647
2018-04-02 11:19:15 +02:00
Jon Emil Jahren d096769786 Convert SDL_image bindings into autogenerated ones
I'm not sure if this is the intended way of using bindgen, but the
SDL_image bindings now piggy-back on the core SDL bindings by
blacklisting some types that gets dragged into the image module.
The solution probably does not scale, but it might be preferable to have
autoupdateable bindings rather than having to do it manually.

Progresses on #647
2018-04-02 11:19:08 +02:00
Jon Emil Jahren c6b78a1c67 Moved gfx low level interface into sdl2_sys crate
Progresses on #647
2018-04-02 11:19:03 +02:00
Jon Emil Jahren 75137049cd Move SDL_ttf to sdl2-sys crate
Progresses on #647
2018-04-02 11:18:59 +02:00
Jon Emil Jahren d2a7233827 Move SDL_image to sdl2-sys crate
Progresses on #647
2018-04-02 11:18:54 +02:00
Jon Emil Jahren 0fb0dc54f3 Move linker flags of the mixer module into build script
Progresses on #647
2018-04-02 11:18:45 +02:00
Jon Emil Jahren d706ee9085 Move mixer module to the sdl2-sys crate
The 'mixer' feature is re-exported so compiling without it will leave
out the mixer function definitions in sdl2-sys crate as well.
Progresses on #647
2018-04-02 11:18:32 +02:00
Jon Emil Jahren 3e2265321b Bindgen cleanup and update version to 0.35
Closes #744

Defines were not set correctly as target matching was wrong.
Removed hide_type deprecated binding builder method use, in favor of
blacklist_type.
Added rustified_enum call, since newer bindgen versions will make
constants instead of enums breaking the sdl2-sys crate.

Bindings were regenerated using the following command:
cargo build --features bindgen
2018-04-01 23:34:38 +02:00
Simon HeathandCobrand e9f2e33797 Made gl_set_swap_interval() return Result, not bool
Resolves #755
2018-03-31 19:00:04 +02:00
Jessica StokesandCobrand 809fee03a1 Use power_level in the joystick example 2018-03-31 18:58:33 +02:00