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
950829f234
Add Wav class
2014-11-30 00:48:08 +03:00
Dmitry Marakasov
646380520f
Add method to check if two AudioSpecs are equal
2014-11-30 00:45:36 +03:00
Dmitry Marakasov
7ebd613d01
Add AudioSpec copy constructor
...
Since callback is non-copyable, new callback is specified
2014-11-30 00:44:43 +03:00
Dmitry Marakasov
e034f6cd67
Add AudioSpec empty constructor
2014-11-30 00:44:02 +03:00
Dmitry Marakasov
724e3f37a8
Provide default value for empty callback
2014-11-30 00:43:13 +03:00
Dmitry Marakasov
fcf0302213
Remove noexcept specifications
...
std::function(std::function&&) is only noexcept in libc++, not
libstdc++, so calculated signatire of move ctor/assignment of AudioSpec
won't match specification
2014-11-29 23:12:11 +03:00
Dmitry Marakasov
2be68a9ebb
Add wrapper for large part of SDL2 audio functionality
2014-11-29 22:58:27 +03:00
Dmitry Marakasov
a97d100372
Implement texture property getters
2014-11-25 23:41:54 +03:00
Dmitry Marakasov
f5fa211cfe
Implement texture locking
2014-11-24 19:27:56 +03:00
Dmitry Marakasov
359a0e93c8
Implement Rect::Contains(Point)
2014-11-24 01:52:49 +03:00
Dmitry Marakasov
168143510b
Mention template args
2014-09-05 05:41:59 +04:00
Dmitry Marakasov
3e5b392075
ContainerRWops are not assignable due to references; add noexecpt to move ctor
2014-09-05 05:35:34 +04:00
Dmitry Marakasov
e3ad1a4ad7
Add custom RWops for use with constant containers
2014-09-05 05:23:13 +04:00
Dmitry Marakasov
2b84c17ce2
Allow to load texture fro file or via RWops
2014-09-05 05:03:12 +04:00
Dmitry Marakasov
9a0a6b9da6
Add Config.hh to record build-time settings
2014-09-05 05:00:06 +04:00
Dmitry Marakasov
fbf5d046ea
Add custom RWops class which works with arbitrary container as a storage
2014-09-05 04:54:50 +04:00
Dmitry Marakasov
aaea702856
Add RWops class
2014-09-05 04:46:30 +04:00
Dmitry Marakasov
dfb464ea7b
Implement init/deinit/check of separate SDL subsystems
2014-07-27 00:30:26 +04:00
Dmitry Marakasov
42fa7bdd70
Fix return value checking
2014-07-21 19:12:48 +04:00
Dmitry Marakasov
6ed9b7a578
Remove unneeded argument names
2014-02-22 00:39:50 +04:00
Dmitry Marakasov
5a61a8f51b
Fix Get() for null Points and Rects, add tests for it
2014-02-21 23:46:37 +04:00
Dmitry Marakasov
8e6bf5fc2f
Add basic Point arith
2014-02-21 20:09:11 +04:00
Dmitry Marakasov
7b4b6c051a
Don't use allocations inside Point and Rect
...
Instead, use boolean validity flag, which is much more practical
2014-02-21 17:11:48 +04:00
Dmitry Marakasov
2c7cb50fd9
Implement SetClipRect, SetScale, SetViewport, TargetSupported in Renderer
2014-02-17 03:28:57 +04:00
Dmitry Marakasov
2f91553068
Implement Renderer::ReadPixels
2014-02-11 07:41:20 +04:00
Dmitry Marakasov
f6d6572602
Fix Rect::FromCenter and add test for it
2014-02-11 06:01:36 +04:00
Dmitry Marakasov
66f4d5b57a
Properly handle self-assignment
2014-02-11 05:51:15 +04:00
Dmitry Marakasov
1e4e1cb560
Define default ctors/assignments in source files to avoid using objects of incomplete type in them
2014-02-11 05:51:13 +04:00
Dmitry Marakasov
0365329dc0
Add Point and Rect comparison operators
2014-02-11 05:44:08 +04:00
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