15 Commits

Author SHA1 Message Date
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
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
167da88546 SDL_SetClipRect returns SDL_TRUE, not 0 on success 2015-11-28 18:46:59 +03:00
Dmitry Marakasov
d29b7528a6 Fix some type conversion warnings 2015-09-17 15:32:54 +03:00
Dmitry Marakasov
c54a021d8e Add Surface::GetFormat(), analogus to Texture::GetFormat() 2015-08-27 18:21:31 +03:00
Dmitry Marakasov
689f57b864 Exception rework
Now it explicitely stores name of SDL function which caused an error
and generates complete user-readable error message which contains both
function name and SDL error message. Users can now handle SDL2pp
exceptions along with all others in `catch (std::exception&)' and
get complete error info.

While here, fixed incorrect function names in some throw's
2015-01-19 01:41:37 +03:00
Dmitry Marakasov
ae1eac9423 Use bool type for boolean argument 2015-01-19 01:04:57 +03:00
Dmitry Marakasov
487f53bcd7 Make setters return reference to self: Surface 2015-01-18 03:31:06 +03:00
Dmitry Marakasov
1e5c17c95a Fix argument type; we use bool in C++ 2015-01-11 06:30:15 +03:00
Dmitry Marakasov
9e53670b2e Implement Width/Height/Size getters for Texture and Surface 2014-12-29 21:37:44 +03:00
Dmitry Marakasov
6e90301ba1 Add SDL_image surface loaders 2014-12-27 21:30:59 +03:00
Dmitry Marakasov
6db6d0c1bc Implement most Surface functions 2014-12-27 21:21:51 +03:00
Dmitry Marakasov
607e9e09d0 Implement surface locking 2014-12-27 19:01:28 +03:00
Dmitry Marakasov
f1fa69a4ce Add Surface class stub 2014-12-26 23:00:12 +03:00