26 Commits

Author SHA1 Message Date
Dmitry Marakasov
802322ef1b Add Point and Rect setters
While here, fix Rect::GetX2 and Rect::GetY2 off-by-one errors
2014-02-11 04:33:24 +04:00
Dmitry Marakasov
14819ba188 Remove Swap() methods as there's std::swap for this 2014-02-11 04:19:51 +04:00
Dmitry Marakasov
7357952e5a Add SetTitle, use std::string for window title 2014-02-03 05:00:36 +04:00
Dmitry Marakasov
c89ec85164 Add window size getters 2014-02-03 04:37:31 +04:00
Dmitry Marakasov
648a43369b Add missing includes and forward declarations 2014-02-03 01:50:21 +04:00
Dmitry Marakasov
c3702a1eb8 Add explicit check for nullptr before destroying SDL objects
This is not really needed as SDL has these checks internally,
but this way it's still safer and more apparent that moved-from
objects are handled properly.
2014-02-01 03:36:48 +04:00
Dmitry Marakasov
411c62a3cc Implement c++11 move for renderers, textures and windows 2014-02-01 00:18:15 +04:00
Dmitry Marakasov
2c16af7f12 Sort out SDL_point forward declaration 2013-12-18 16:27:34 +04:00
Dmitry Marakasov
c6d945120e Use std::swap 2013-12-18 16:21:55 +04:00
Dmitry Marakasov
151f9704ac Merge branch 'master' of github.com:AMDmi3/libSDL2pp 2013-12-18 06:22:47 +04:00
Dmitry Marakasov
3d57457a33 Provide default arguments for Copy() 2013-12-18 06:16:10 +04:00
Dmitry Marakasov
51aee70136 Use int type for flip argument, as it's a bitfield and not a real enum 2013-12-18 06:16:10 +04:00
Dmitry Marakasov
4c46058a4b Provide Set*Mod with default values, such so no-arg call will reset modifier to default 2013-12-18 06:16:10 +04:00
Dmitry Marakasov
96576e112d Add method to set color component multipliers 2013-12-18 06:16:10 +04:00
Dmitry Marakasov
7698a2522e Add method to retrieve SDL_RendererInfo 2013-12-18 06:16:10 +04:00
Dmitry Marakasov
92925a9620 Add a way to swap some types of objects 2013-12-18 06:15:46 +04:00
Dmitry Marakasov
acebd488aa Add a way to reset render target to default (e.g. screen) 2013-12-18 06:14:08 +04:00
Dmitry Marakasov
e183d4b454 Remove excessive comment 2013-11-15 18:55:14 +04:00
Dmitry Marakasov
5cb5b59820 Merge pull request #4 from Lowest0ne/virtual-destructors
make destructors virtual
2013-11-15 06:53:09 -08:00
Carl Schwope
0e663f21d7 call SDL_RenderFillRect 2013-11-15 01:44:22 -05:00
Carl Schwope
1c1f37b76e make destructors virtual 2013-11-14 15:53:51 -05:00
Dmitry Marakasov
76124eb4a5 Explicitely declare default move ctors and assignments 2013-09-20 23:34:20 +04:00
Dmitry Marakasov
df56f312ed Add draw functions 2013-09-18 03:05:45 +04:00
Dmitry Marakasov
aa615060e4 Add getters and checks for nullness 2013-09-18 03:04:47 +04:00
Dmitry Marakasov
3011a62589 Add another named constructor for Rect 2013-09-06 02:03:47 +04:00
Dmitry Marakasov
c122f11643 Initial import 2013-09-06 01:47:05 +04:00