108 Commits

Author SHA1 Message Date
Dmitry Marakasov
d8c5cfb56e Add test for Chunk and Music loading through RWops 2017-04-21 15:05:42 +03:00
Dmitry Marakasov
970cd74dd9 Merge branch 'master' of github.com:libSDL2pp/libSDL2pp 2017-02-20 16:32:54 +03:00
Dmitry Marakasov
3c5b2e2fb5 Whitespace fix 2017-02-14 14:13:48 +03:00
Dmitry Marakasov
24482d85f6 Follow SDL2 include path conventions
Though these are broken and error prone, as they ignore the possibility
of conflicts between SDL, SDL2 and wrappers thereof discarding useful
include path prefix (SDL2/), since SDL and satellite libraries follow
these it's too hard to stay away.

So don't use prefixes for SDL include paths any longer.
2017-02-08 13:19:04 +03:00
Dmitry Marakasov
49e3c6a6a9 Implement Get/SetOpacity for Window (new in SDL 2.0.5) 2016-11-14 18:34:27 +03:00
Dmitry Marakasov
a72d259abf Mask some unicode tests on MSVC 2016-05-23 17:11:12 +03:00
Dmitry Marakasov
5acf8c7779 Fix testing.h for MSVC 2016-05-23 17:11:12 +03:00
Dmitry Marakasov
7e52a90082 Add QueueAudio test 2016-04-14 20:54:33 +03:00
Dmitry Marakasov
b26842cf98 Add Surface move test 2016-02-19 23:46:20 +03:00
Dmitry Marakasov
cebaa53dcb Add render target test 2016-02-19 23:46:09 +03:00
Dmitry Marakasov
fcfe258550 Use references for cleaner self move tests 2016-02-17 04:00:28 +03:00
Dmitry Marakasov
e37245b7e1 Test SDLMixer init
Some SDLMixer tests are muted: Mix_Init(0) doesn't really return mask of
initted sample/music loaders for me, despite the documentation says it
should. SDL_mixer bug?
2016-02-17 03:59:14 +03:00
Dmitry Marakasov
8e177f6606 Test SDLImage init 2016-02-17 03:59:11 +03:00
Dmitry Marakasov
52e142ce57 Test SDL init/deinit 2016-02-17 02:44:03 +03:00
Dmitry Marakasov
6da3e4e71f Use move tests for mixer 2016-02-03 01:39:51 +03:00
Dmitry Marakasov
4c8d854c9c Add move AudioDevice tests 2016-02-03 00:28:31 +03:00
Dmitry Marakasov
62ea64d28d Add standard move test 2016-02-03 00:28:15 +03:00
Dmitry Marakasov
9097064a4e Add AudioDevice test 2016-02-03 00:04:04 +03:00
Dmitry Marakasov
2c7d6a9d19 Add tests for Mixer sound/music finished handlers 2016-01-29 01:57:30 +03:00
Dmitry Marakasov
433733df35 Add Renderer()::GetInfo() test 2016-01-29 01:37:32 +03:00
Dmitry Marakasov
7545be645c Add Renderer::SetDrawBlendMode() default argument and tests 2016-01-29 01:37:19 +03:00
Dmitry Marakasov
748d70aa08 Add GetDrawColor test 2016-01-28 00:15:34 +03:00
Dmitry Marakasov
05ade606df Test both overloads of DrawPoint() 2016-01-28 00:06:45 +03:00
Dmitry Marakasov
a52555b927 Renderer::GetClipRect() now returns Optional
Also add test for clipping rect
2016-01-28 00:06:01 +03:00
Dmitry Marakasov
a9a71b50b7 Merge branch 'master' of github.com:libSDL2pp/libSDL2pp 2016-01-26 04:07:04 +03:00
Dmitry Marakasov
c98e3a653f Extend renderer test 2016-01-25 22:57:16 +03:00
Dmitry Marakasov
e49423f3f1 Remove obsolete tests 2016-01-25 21:46:53 +03:00
Dmitry Marakasov
d75d68a2a0 Add font rendering tests 2016-01-25 20:33:02 +03:00
Dmitry Marakasov
15e801dc7b More Font tests 2016-01-25 20:19:23 +03:00
Dmitry Marakasov
bc6ff5f450 Add basic font test 2016-01-25 19:48:05 +03:00
Dmitry Marakasov
b0ea9e7216 Add stub surface test 2016-01-25 19:27:18 +03:00
Dmitry Marakasov
ed4d777f39 Add some AudioSpec tests to test_wav 2016-01-24 22:57:16 +03:00
Dmitry Marakasov
acc8a919a9 Add Wav test 2016-01-24 22:30:29 +03:00
Dmitry Marakasov
359672a053 Merge branch 'window-tests' 2016-01-24 20:54:02 +03:00
Dmitry Marakasov
f87b19da6a Add some move tests 2016-01-24 20:52:45 +03:00
Dmitry Marakasov
5a5d2c9be6 Use EXPECT_NO_EXCEPTION 2016-01-24 20:43:50 +03:00
Dmitry Marakasov
f4e07330cf Update testing.h 2016-01-24 20:40:23 +03:00
Dmitry Marakasov
f2011ac583 Take minimization delay into account 2016-01-24 20:39:06 +03:00
Dmitry Marakasov
1605f90bcc Disable some hanging tests 2016-01-24 20:17:27 +03:00
Dmitry Marakasov
0e8331bbab More window tests 2016-01-24 19:53:04 +03:00
Dmitry Marakasov
69bb914040 Improve SDL2Main library handling 2016-01-22 23:49:29 +03:00
Dmitry Marakasov
317cf6b391 Add more window tests 2016-01-21 22:05:47 +03:00
Dmitry Marakasov
4c2180e260 Add first portion of live window tests 2016-01-19 05:36:30 +03:00
Dmitry Marakasov
c92125053e Extend Exception test coverage 2016-01-18 23:19:47 +03:00
Dmitry Marakasov
7dd543053c Fix more SDL_main issues
- Always include SDL2/SDL_main.h in all tests to handle main() correctly
- Link all tests with SDL2pp (and thus with libSDL2main)
2016-01-05 18:28:52 +03:00
Dmitry Marakasov
0aede126fc Fix main() signatures to be compatible with SDL_main 2015-12-15 22:06:56 +03:00
Dmitry Marakasov
8003052f32 Add Rect point getters 2015-11-27 20:21:49 +03:00
Dmitry Marakasov
e6f9cdbf4c Add two arguments rect extension methods 2015-11-27 16:42:30 +03:00
Dmitry Marakasov
fa3cb7bcd9 Add std::hash support for Point and Rect 2015-11-26 13:42:16 +03:00
Dmitry Marakasov
95142b065c Add Point and Rect less-than operator
This allows using them as map and set keys
2015-11-26 12:57:36 +03:00