11 Commits

Author SHA1 Message Date
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
89ea96d008 Mark most single argument constructors explicit
Fixes #91
2017-02-14 14:14:26 +03:00
Vladimir Gamalian
32f5bf0b18 Fix mingw compilation.
SEEK_END and SEEK_SET do not visible for mingw (there is no #include <stdio.h> in the include tree for SDLpp/RWops.cc).
Both constants are using for RWops::Seek -> SDL_RWseek, which accepts "whence" as one of defines RW_SEEK_SET/RW_SEEK_CUR/RW_SEEK_END.
My suggestion is: replace SEEK_END -> RW_SEEK_END, SEEK_SET -> RW_SEEK_SET.
2015-06-28 08:39:41 +07: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
c823994fbc Fix argument name 2015-01-11 06:28:22 +03:00
Dmitry Marakasov
b8d3b08f10 Implement fixed integer r/w methods 2014-12-18 17:24:19 +03:00
Dmitry Marakasov
9d2097cdea Silence warning on Release build 2014-12-18 13:16:12 +03:00
Dmitry Marakasov
46591a9cbf Update project comment 2014-12-18 02:52:08 +03:00
Dmitry Marakasov
93a77542d8 Fix move assignments
- Add self-assignment checks
- Free resources of object which is going to be replaced to avoid
  resource leaks
2014-11-30 01:22:22 +03:00
Dmitry Marakasov
aaea702856 Add RWops class 2014-09-05 04:46:30 +04:00