Commit Graph
100 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
Cobrand 4232ca1d4c Document supported SDL2 versions
Mention the bundled feature as well
2018-01-03 02:55:06 +00:00
Cobrand 5a732fb21d Merge pull request #740 from wmedrano/master
* Implement full debug for Event
* Implement Debug for MouseState
2018-01-02 18:36:04 -08:00
Cobrand 43ca1ba0cc Merge pull request #739 from martinlindhe/master
add an example using a custom mouse cursor
2017-12-29 00:06:35 -08:00
Cobrand 35b4931f98 Update changelog for PR #733 and #737 2017-12-12 06:00:54 +00:00
Cobrand b83be89a9d Merge pull request #733 from Cyres/master
Add SDL_GetWindowBordersSize()
2017-12-12 05:53:27 +00:00
Cobrand 2bed801fef Disable test_timer for macos 2017-12-12 05:51:27 +00:00
Cobrand 86fc6fbddc Add text in main doc page 2017-11-12 23:26:00 +00:00
Cobrand d6c51bb5f5 Change OpenGL help section in README.md 2017-11-12 00:38:33 +00:00
Cobrand 122cc4a8f2 Change mentions of v0.30 in readme 2017-11-12 00:32:34 +00:00
Cobrand 333aa98930 Bump to v0.31 2017-11-09 06:51:12 +00:00
Cobrand 7df079387b Add PR "bundled" to changelog 2017-11-09 06:50:19 +00:00
Cobrand 2d223fab41 Change changlog link from v0.30 to v0.31 2017-11-09 06:43:43 +00:00
Cobrand 9406adea1c Add "bundled" mention to README 2017-11-09 06:42:58 +00:00
Cobrand fb40fbb510 Merge PR#720, support bundled+bindgen+static
Support "bundled", "bindgen" and opt-in static linking
2017-11-07 23:40:10 -08:00
Cobrand a70353d686 Temporary headers fix to allow bindgen to be used 2017-11-03 23:14:04 -07:00
Cobrand a006792534 Fixed build.rs with static & pkgconfig 2017-11-03 02:12:57 +00:00
Cobrand 0aea5b5c23 Fix windows-msvc target not being detected correctly 2017-11-01 23:33:20 -07:00
Cobrand 74e1e6c057 Update README's OpenGL example 2017-11-01 06:11:01 +00:00
Cobrand acbb335714 Add static-lin feature to main rust-sdl2 2017-10-31 07:06:12 +00:00
Cobrand 3799a9142f Possibility to use bindgen & bundled together
* Also supports opt-in static linking
2017-10-31 07:06:12 +00:00
Cobrand 0baf80218b Add macOS support for 'bundled' 2017-10-31 07:06:12 +00:00
Cobrand a8139d8f5f Fix sdl2's -sys dependency
oops
2017-10-28 03:18:13 +00:00
Cobrand 329334c8a6 Bump sdl2-sys to 0.31 2017-10-27 07:16:22 +00:00
Cobrand bb0d05ff6c Merge pull request 695, add bindgen support 2017-10-27 07:15:29 +00:00
Cobrand 7a94b9ca51 More info about bindgen in README 2017-10-27 07:12:11 +00:00
Cobrand e739ed77af Update changelog to track bindgen 2017-10-27 06:55:47 +00:00
Cobrand 57f3864a7f Add .vscode to gitignore 2017-10-27 06:00:33 +00:00
Cobrand 702f8ffe36 Merge #711: Change HatState::Leftdown into HatState::LeftDown
* Fix HatState::Leftdown casing into HatState::LeftDown
* Fixed example
* Added an entry to the changelog
2017-10-27 07:58:58 +02:00
Cobrand 5b717f8dd0 Merge pull request #714 from ticky/friendlier-controllerdeviceadded
Friendlier ControllerDeviceAdded and JoyDeviceAdded `which` values
2017-10-27 07:46:58 +02:00
Cobrand 1756e02b47 Add some more documentation for unsafe_textures feature 2017-09-04 22:33:15 -07:00
Cobrand f786bdd2bb Update travis and README for the unsafe_textures feature 2017-09-04 22:33:15 -07:00
Cobrand ceb547d92f Update examples in Cargo.toml to avoid failing tests with unsafe_textures feature 2017-09-04 22:33:15 -07:00
Cobrand 220a74a292 Add 'unsafe_textures' feature to get rid of the Texture lifetime 2017-09-04 22:33:15 -07:00
Cobrand dbea930a18 Update changelog 2017-09-05 05:09:10 +00:00
Cobrand 56236302cf Update Travis Badge
Closes #691
2017-08-06 22:30:54 +00:00
Cobrand 8264c3f283 Add missing enum variants in SDL_WindowFlags 2017-07-09 05:50:44 +00:00
Cobrand 7623bd51fb Add SDL_GetWindowWMInfo in sdl2_sys
Because of the lack of untagged union support as of this commit's date,
this is not implemented in sdl2 yet.

Fixes #649
2017-07-09 05:37:47 +00:00
Cobrand ed7178cb94 Fix warning that emerged with FnMut->FnOnce from previous commit 2017-07-08 23:57:51 +00:00
Cobrand 0fee8e14e1 Updated README to run example with feature if needed 2017-05-14 07:52:06 +02:00
Cobrand 932b460e5b Bump sdl2 to 0.30.0 2017-05-14 07:49:56 +02:00
Cobrand cee83a4547 Bump sdl2_sys to 0.30.0 2017-05-14 07:46:07 +02:00
Cobrand 895b1a294a Add Surface::into_canvas() method 2017-05-14 07:44:27 +02:00
Cobrand 2a0701263f Export sdl2-sys as ::sys in sdl2 2017-05-14 07:36:48 +02:00
Cobrand bcab218563 Change the pub API behind SDL_SetRenderTarget
* Extensive changes to Canvas
* Deleted RendererTarget and TextureCanvas
* Updated documentation
* Updated examples as well

Closes #657
2017-05-14 07:36:33 +02:00
Cobrand d762363002 Update README with a link to changelog 2017-05-06 07:26:38 +02:00
Cobrand c02f99954e Update sdl2-sys tags and categories 2017-05-06 04:22:30 +02:00
Cobrand 128dd28826 Update sdl2 categories and keywords 2017-05-06 04:20:55 +02:00
Cobrand 1cd629f81f Bump sdl2 to 0.30-beta 2017-05-05 09:38:18 +02:00
Cobrand 6604dc2fff Bump sdl2-sys to 0.30-beta 2017-05-05 09:33:02 +02:00
Cobrand eb19e360e7 Add entry for Window::surface() in changelog 2017-05-05 09:21:57 +02:00
Cobrand 650051c504 Add an example to render without Renderer 2017-05-05 09:16:51 +02:00
Cobrand e9681a0fef Change Window::surface() method 2017-05-05 09:16:34 +02:00
Cobrand 43e4f0a7f3 Added fps limiter to demo.rs 2017-05-05 09:15:59 +02:00
Cobrand 5102e532b1 Removed some transmute in surface.rs 2017-05-04 08:19:06 +02:00
Cobrand 061ae5cfaf Enforced naming consistency in examples/ 2017-05-04 07:57:23 +02:00
Cobrand c007c3fd7a Solved unsoundness in gfx DrawRenderer::string
Closes #652
2017-05-03 09:15:54 +02:00
Cobrand eaadf7609c Fix clippy errors: second pass 2017-05-03 09:15:54 +02:00
Cobrand f1a76882d6 Fix clippy errors: first pass 2017-05-03 09:15:54 +02:00
Cobrand 95497ff682 Update changelog to add PR 635 2017-05-03 08:19:20 +02:00
Cobrand ac87f8153a Fix travis with new display_name test 2017-05-02 09:03:02 +02:00
Cobrand 576e2d6f38 Update changelog for VideoSubsys::display_name 2017-05-02 09:03:02 +02:00
Cobrand 13e6811ca3 Changed travis to test only one thread at a time
Error can happen if SDL is initialized twice in a row. Testing only one
test at a time ensures that this use-case can't happen.
2017-05-02 09:03:02 +02:00
Cobrand 40a373c5ea Refactored tests/ and added test for VideoSubsys 2017-05-02 09:03:02 +02:00
Cobrand f1eea15e00 Fix segfault in VideoSystem::display_name
Closes #650
2017-05-02 09:03:02 +02:00
Cobrand cddc9a9fa1 Updated changelog for Canvas/TextureCreator change 2017-05-02 08:39:30 +02:00
Cobrand a00a85ec38 Add a simple Game Of Life example
This is mainly meant to show RenderTarget's capabilities and how to use
Canvas.
2017-05-02 07:30:18 +02:00
Cobrand ce7817b1b7 Add possibility to use source's pixel format in texture creator
* Added example in Canvas' documentation as well
2017-05-02 07:30:18 +02:00
Cobrand 4de780d86a Remove unecessary unsafe from some functions 2017-05-02 07:30:18 +02:00
Cobrand aa81cf79ae Add supports_alpha()->bool for PixelFormatEnum 2017-05-02 07:30:18 +02:00
Cobrand aba1c52356 Change Canvas to have 1 generic param instead of 2 2017-05-02 07:30:18 +02:00
Cobrand c97c4f43d5 examples/audio-wav: add ability to pass custom wav as arg 2017-04-24 03:38:28 +02:00
Cobrand 97399f3384 Add sdl2::log::log fn 2017-04-14 05:42:20 +02:00
Cobrand 44ec4d8824 Add basic support for log::set_output_function 2017-04-13 08:49:12 +02:00
Cobrand 922bc7f5ae sdl2-sys: Add missing SDL_Log_* functions 2017-04-12 08:26:54 +02:00
Cobrand 196bfa2ffc Added PR #628 to changelog 2017-04-12 04:12:12 +02:00
Cobrand 9a56099a82 Add general contributions directives
* Add mention of the changelog as well
2017-04-11 05:51:11 +02:00
Cobrand bc68e726d1 Add a changelog file 2017-04-11 05:37:35 +02:00
Cobrand 8bcf9f69b1 Bump sdl2_sys to 0.27.3 2017-04-05 07:37:42 +02:00
Cobrand 6186280f8f Bump to sdl2 v0.29.1 2017-04-05 07:33:09 +02:00
Cobrand 662d3ea7d2 Add crates.io badge in README 2017-04-05 07:31:14 +02:00
Cobrand daa27e6d35 Bump to 0.29 2017-02-14 15:30:47 +01:00
Cobrand 7b7d20c5fe Fixed ttf lifetimes 2017-02-14 15:03:24 +01:00
Cobrand 6b01841020 Add categories to Cargo.toml
Closes #594
2017-02-02 19:51:02 +01:00
Cobrand caa487a10b bump rust-sdl2 to 0.28
sdl2-sys is kept at version 0.27 and this is intended,
there were no changes to sdl2-sys since 0.27, hence updating
is useless for now. If sdl2-sys is updated in sdl2 0.29,
sdl2-sys will be updated to 0.29 as well, not 0.28
2017-01-17 15:17:48 +01:00
Cobrand befcf5b95d readme: Make docs.rs link always up to date 2017-01-17 14:49:17 +01:00
Cobrand 460a629b35 Bump to minor 0.27.3 2017-01-09 16:44:22 +01:00
Cobrand 7ee32ee863 Fix wrong lifetime in ttf::load_font
Closes #576

Adapted load_font to use AsRef<Path> as well
2017-01-06 14:36:30 +01:00
Cobrand 60387fe8d6 remove unused import 2016-12-23 15:02:41 +01:00
Cobrand 3251091f15 remove stray println 2016-12-23 14:59:41 +01:00
Cobrand 03e7d83880 bump to minor 0.27.2 2016-12-23 14:54:48 +01:00
Cobrand e900c427f2 change Keymod from u32 to u16 2016-12-23 14:49:17 +01:00