Cobrand
17ea8930b4
Update examples in Cargo.toml to avoid failing tests with unsafe_textures feature
2017-09-05 05:11:04 +00:00
shybyte and Cobrand
0e2ac14266
Fixed clippy warnings in audio-capture-and-replay example.
2017-07-08 22:09:27 -07:00
shybyte and Cobrand
059cf96ee5
Do not specify AudioSpecDesired.freq in audio-capture-and-replay example in order to avoid problems with sound cards, which might not be able to record with 44100 hz.
2017-07-08 22:09:27 -07:00
shybyte and Cobrand
515229add5
Support Audio Capture in AudioCallbacks
...
* Added open_capture method to AudioSubsystem
* Added example audio-capture-and-replay
2017-07-08 22:09:27 -07:00
johnthagen and Cobrand
33fdf82277
Update mixer example to run sound effect in addition to music ( #666 )
...
* Add chunksize parameter documentation.
* Fix example name.
2017-05-28 13:03:35 -07: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
650051c504
Add an example to render without Renderer
2017-05-05 09:16:51 +02:00
Cobrand
43e4f0a7f3
Added fps limiter to demo.rs
2017-05-05 09:15:59 +02:00
Cobrand
061ae5cfaf
Enforced naming consistency in examples/
2017-05-04 07:57:23 +02:00
Cobrand
f1a76882d6
Fix clippy errors: first pass
2017-05-03 09:15:54 +02:00
Cobrand
40a373c5ea
Refactored tests/ and added test for VideoSubsys
2017-05-02 09:03:02 +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
Andres and Cobrand
19c5d12602
Split the Renderer
...
Created a Canvas + TextureCreator
2017-05-02 07:30:18 +02:00
Andres and Cobrand
d4f133c374
running rustfmt
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
Jacob Kiesel and Cobrand
a0bd52fe7e
Update APIs to use Into<Option> instead of Option
2017-04-12 04:03:46 +02:00
davideGiovannini and Cobrand
2efb69847e
Added basic haptic wrapper ( #617 )
...
* Added basic haptic wrapper
* Cleaned up [allow unused], added docs and fixed typo.
2017-03-09 11:10:38 +01:00
Cobrand
e5ab0023a3
Fix usage of isize
2016-12-06 22:26:56 +01:00
Cobrand
bccbdc39c4
Fix examples' warnings
2016-12-02 21:21:47 +01:00
Cobrand
79e0d77a10
Fix gfx example
2016-12-02 21:08:13 +01:00
Cobrand
2063911d5d
Fix image example
2016-12-02 21:00:02 +01:00
Cobrand
0e1bc28d10
Fix mixer example
2016-12-02 20:54:09 +01:00
Cobrand
f0b99abe1d
Fix ttf example
2016-12-02 20:34:35 +01:00
Cobrand
380665d603
Refactor module, part 1
2016-12-02 18:20:13 +01:00
Luke Jones
ed1ced7cbe
Update animation example.
...
- There is a problem with the SDL2 libraries software renderer such
that `RenderCopyEx` will draw a flipped or rotated rect in the wrong
place if;
- the position of both source and destination are 0, or;
- the dimensions of source and destination are the same.
- a workaround if using the software renderer is to make the destination
1 pixel larger x,y, or shift the source over 1 pixel. Not ideal.
Issue #492 contains more details.
2016-11-20 17:59:57 +13:00