361 Commits

Author SHA1 Message Date
Vraiment
daab479c0f Added Color support for Texture 2017-07-05 11:02:34 -07:00
Vraiment
b1cc4d5711 Added Color support for Surface 2017-07-05 11:02:34 -07:00
Vraiment
ddaee362a1 Added Color support for Renderer 2017-07-05 11:02:34 -07:00
Vraiment
980fe93481 Added Color class 2017-07-05 11:02:34 -07:00
Dmitry Marakasov
dd3f2da31e Comments with doxygen groups should logically be covered by ifdefs too 2017-06-28 22:36:37 +03:00
Dmitry Marakasov
34137f1ec9 Add missing include to SDL2pp.hh
Fixes #98
2017-06-28 22:36:04 +03:00
Dmitry Marakasov
f28e873d17 Implement proper Size() handling in custom rwops 2017-04-21 18:16:49 +03:00
Dmitry Marakasov
5f6191dfc1 Use SDL function for rwops size 2017-04-21 18:16:08 +03:00
Dmitry Marakasov
b4b39e32d0 Update copyright years 2017-04-21 14:51:11 +03:00
Dmitry Marakasov
bb2ff1f066 Add Music ctors from RWops based on undocumented SDL_mixer functions
Fixes #92
2017-04-21 14:50:03 +03:00
Dmitry Marakasov
970cd74dd9 Merge branch 'master' of github.com:libSDL2pp/libSDL2pp 2017-02-20 16:32:54 +03:00
Dmitry Marakasov
89ea96d008 Mark most single argument constructors explicit
Fixes #91
2017-02-14 14:14:26 +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
83c261cf03 Add Texture::Update() overload which takes Surface&& 2016-11-08 17:59:24 +03:00
Dmitry Marakasov
4ab3906b07 Whitespace fixes 2016-10-18 17:43:27 +03:00
Dmitry Marakasov
8ab8772a1c Add explicit cast from streamsize, fixing MSVC warning 2016-05-23 19:54:53 +03:00
Dmitry Marakasov
736e7d5877 Drop custom DEPRECATED macro
We now have this macro generated in Export.hh
2016-05-23 17:13:38 +03:00
Dmitry Marakasov
20bdc36577 Add export statements all over the code 2016-05-23 17:11:12 +03:00
Dmitry Marakasov
b3a6c2c593 Add comment on why default AudioSpec ctor is needed
Related to #70
2016-05-18 22:39:20 +03:00
Dmitry Marakasov
12980ab29c Fix include 2016-05-09 04:55:49 +03:00
Dmitry Marakasov
9f8a72db9c Derive Exception from std::runtime_error instead of std::exception
Apart from placing Exception into right place in exception class
hierarchy this change allows more memory usage optimizations.

Fixes #68
2016-05-09 04:05:30 +03:00
Dmitry Marakasov
4a19bdf3dd Update copyright years 2016-04-14 20:55:45 +03:00
Dmitry Marakasov
56d1890fff Switch to automatic SDL 2.0.4 detection 2016-04-14 20:53:29 +03:00
Dmitry Marakasov
6532490388 Function belongs to class 2016-04-14 20:52:39 +03:00
Dmitry Marakasov
94e06e22fc Fix reversed SDL_QueueAudio return value check 2016-04-14 20:52:10 +03:00
Dmitry Marakasov
c822b7a00a Add Mixer methods to reset sound/music finished handlers 2016-01-29 01:57:09 +03:00
Dmitry Marakasov
7545be645c Add Renderer::SetDrawBlendMode() default argument and tests 2016-01-29 01:37:19 +03:00
Dmitry Marakasov
a1f2112820 Add default argument values for SetDrawColor 2016-01-28 00:12:02 +03:00
Dmitry Marakasov
b3b6ba9721 Documentation fixes 2016-01-28 00:11:30 +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
31e3c4df74 Remove deprecated variant of Renderer::GetInfo() 2016-01-28 00:04:36 +03:00
Dmitry Marakasov
c001bf7cad Add default value for Texture::SetBlendMode 2016-01-25 22:56:11 +03:00
Dmitry Marakasov
3ca3035e4d Fix documentation for some Window methods 2016-01-24 19:55:36 +03:00
Dmitry Marakasov
62ba85a37c Merge branch 'master' of github.com:libSDL2pp/libSDL2pp 2016-01-05 18:28:25 +03:00
Dmitry Marakasov
f0dd37f428 Use more correct file offset type 2016-01-05 18:17:59 +03:00
Ilya Popov
dfa6832a9a Fix typo in doc comment
See #60
2015-12-30 12:11:41 +01:00
Dmitry Marakasov
ef3e50bef8 Include <algorithm> for std::min 2015-12-11 02:37:58 +03:00
Dmitry Marakasov
167da88546 SDL_SetClipRect returns SDL_TRUE, not 0 on success 2015-11-28 18:46:59 +03:00
Dmitry Marakasov
f20d52dab6 Mark Rect named ctors constexpr 2015-11-27 20:43:08 +03:00
Dmitry Marakasov
01315e3afa Move documentation bit to method it actually belongs to 2015-11-27 20:23:32 +03:00
Dmitry Marakasov
8003052f32 Add Rect point getters 2015-11-27 20:21:49 +03:00
Dmitry Marakasov
693cdc659f Documentation fix 2015-11-27 16:43:18 +03:00
Dmitry Marakasov
e6f9cdbf4c Add two arguments rect extension methods 2015-11-27 16:42:30 +03:00
Dmitry Marakasov
43ebad282c Improve documentation 2015-11-26 14:23:03 +03:00
Dmitry Marakasov
fa3cb7bcd9 Add std::hash support for Point and Rect 2015-11-26 13:42:16 +03:00
Dmitry Marakasov
a63cdde38f Move Rect and Point comparison operators out of classes 2015-11-26 13:14:17 +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
Vladimir Gamalian
990efa6ef6 Remove unused variables 2015-10-15 16:45:08 +07:00