361 Commits

Author SHA1 Message Date
Dmitry Marakasov
1ec71ddaba Fix documentation 2015-07-07 22:41:03 +03:00
Dmitry Marakasov
539e6c8fd1 Constexprify even more Rect methods 2015-07-07 21:28:30 +03:00
Dmitry Marakasov
beaa9ed3b8 Constexprify more Rect methods 2015-07-07 16:27:03 +03:00
Dmitry Marakasov
4f3256fda5 Constexprify Rect constructors 2015-07-07 15:42:03 +03:00
Dmitry Marakasov
63cd8feebc Move most other Point methods to the header to allow inlining 2015-07-07 15:41:53 +03:00
Dmitry Marakasov
5a55e91987 Constexprify Point arith ops 2015-07-07 15:41:45 +03:00
Dmitry Marakasov
d11345b6df Initial Point constexpr support: constructors and comparison operators 2015-07-07 05:17:09 +03:00
Dmitry Marakasov
51120adc62 Fix documentation 2015-07-03 22:26:57 +03:00
Dmitry Marakasov
495f873736 Add div/mul/remainder operators with another Point as an argument 2015-07-03 22:22:48 +03:00
Dmitry Marakasov
47f0263ca3 Add unary minus operator for Point 2015-07-03 22:21:02 +03:00
Dmitry Marakasov
1001bf8fa2 Add memberwise remainter operators for Point 2015-07-03 22:00:59 +03:00
Dmitry Marakasov
0215d2526e Fix typo 2015-07-03 21:52:53 +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
93dc374280 Merge branch 'char16_t' 2015-06-10 00:08:53 +03:00
Dmitry Marakasov
2e2cbbb1e4 Add functions for u16string handling 2015-05-14 17:50:02 +03:00
Dmitry Marakasov
b636ce43a4 Fix SDL_ttf documentation references 2015-05-14 17:33:57 +03:00
Dmitry Marakasov
ae590b5212 Implement Renderer::FillCopy() 2015-03-12 17:44:08 +03:00
Dmitry Marakasov
be69a4ede6 Add Renderer::Copy overloads which take target Point instead of a Rect 2015-02-16 21:19:31 +03:00
Dmitry Marakasov
687d8f848f Whitespace fixes 2015-01-24 23:42:21 +03:00
Dmitry Marakasov
3ac98e50f6 Implement Window::SetBordered 2015-01-21 23:13:41 +03:00
Dmitry Marakasov
50a73c1377 Implement Window::SetIcon 2015-01-21 23:13:24 +03:00
Dmitry Marakasov
d7b28aa79b Mark deprecated method as such in documentation 2015-01-20 03:40:42 +03:00
Dmitry Marakasov
fdcbcddc1d Implement stream output operators for Point and Rect 2015-01-20 02:56:34 +03:00
Dmitry Marakasov
fa7ba94957 Implement Point::Wrap 2015-01-20 02:38:16 +03:00
Dmitry Marakasov
ecf9731750 Implement more Window methods 2015-01-19 23:29:51 +03:00
Dmitry Marakasov
dfaf8d0da3 Fix documentation 2015-01-19 20:19:29 +03:00
Dmitry Marakasov
ead93d1d69 Implement Rect::IntersectLine 2015-01-19 20:18:41 +03:00
Dmitry Marakasov
14f352dddd Implement Rect::Extend 2015-01-19 19:57:40 +03:00
Dmitry Marakasov
0de09713c9 Add mutating Union method 2015-01-19 19:51:43 +03:00
Dmitry Marakasov
2e3f6bbeb2 Provide default value for SDL_image init flags 2015-01-19 03:06:56 +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
c22b50e62e Add missing return 2015-01-19 01:08:27 +03:00
Dmitry Marakasov
952c2ced0c Merge branch 'clamp' 2015-01-19 01:05:36 +03:00
Dmitry Marakasov
9d90792378 Implement Point::Clamp(Rect) 2015-01-19 01:05:05 +03:00
Dmitry Marakasov
ae1eac9423 Use bool type for boolean argument 2015-01-19 01:04:57 +03:00
Dmitry Marakasov
425b2f835f Merge branch 'chaining' 2015-01-19 01:04:48 +03:00
Dmitry Marakasov
7f174505eb Cosmetic fix 2015-01-19 00:59:20 +03:00
Dmitry Marakasov
e2c1333987 Make setters return reference to self: AudioDevice 2015-01-19 00:58:22 +03:00
Dmitry Marakasov
713f42fe1d Make setters return reference to self: Window 2015-01-19 00:52:15 +03:00
Dmitry Marakasov
40e8f71efa Make setters return reference to self: Point and Rect 2015-01-19 00:47:25 +03:00
Dmitry Marakasov
739629354b Make setters return reference to self: Font 2015-01-19 00:44:15 +03:00
Dmitry Marakasov
f9ef31c4b2 Make setters return reference to self: Renderer 2015-01-18 03:52:19 +03:00
Dmitry Marakasov
7e1625a488 Make setters return reference to self: Texture 2015-01-18 03:31:49 +03:00
Dmitry Marakasov
487f53bcd7 Make setters return reference to self: Surface 2015-01-18 03:31:06 +03:00
Dmitry Marakasov
92d7873a61 Implement bunch of Window methods 2015-01-15 19:18:42 +03:00
Dmitry Marakasov
49dd6d2225 Implement Window::GetTitle() 2015-01-15 17:53:56 +03:00
Dmitry Marakasov
90fef8ab49 Mark const method as such 2015-01-15 17:13:42 +03:00
Dmitry Marakasov
be15f8c1d6 Implement Texture::UpdateYUV() 2015-01-15 17:13:00 +03:00
Dmitry Marakasov
e5c74863f0 Implement Renderer Output size getters 2015-01-15 17:12:46 +03:00
Dmitry Marakasov
b6781c3d93 Implement some Renderer getters 2015-01-15 16:59:40 +03:00