9 Commits

Author SHA1 Message Date
Dmitry Marakasov
0d08d4b7bc Provide pi constant, clean up floating point math
Since M_PI is non-standard, provide own constant to avoid using
-std=gnu++11 or other unwanted hacks.
2015-03-27 03:55:52 +03:00
Dmitry Marakasov
8bdc43417d Include cmath for sin/cos 2015-03-26 19:30:32 +03:00
Dmitry Marakasov
8636fb651f Simplify exception handling 2015-03-20 15:04:07 +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
0557464b56 Merge branch 'surface'
Conflicts:
	CMakeLists.txt
2014-12-28 04:29:07 +03:00
Dmitry Marakasov
79300dea2b Use surface in example 2014-12-27 21:46:07 +03:00
Dmitry Marakasov
e0032de447 Implement wrapper for SDL_image init/deinit
Fixes #21
2014-12-27 05:22:12 +03:00
Dmitry Marakasov
65b5446fd1 Axe out remaining uses of old Point/Rect API 2014-12-25 19:30:37 +03:00
Dmitry Marakasov
18fe309309 Remove demos into more suitable examples
Also add options for conditional build of tests and examples
2014-12-20 18:04:22 +03:00