67 Commits

Author SHA1 Message Date
Dmitry Marakasov
ab5ca5a395 Fix compiler flag handling 2014-07-21 18:57:38 +04:00
Dmitry Marakasov
626fcaa567 List header files in project 2014-07-21 18:49:35 +04:00
Dmitry Marakasov
1f7a2bb64f Sort sources list 2014-07-21 18:47:28 +04:00
Dmitry Marakasov
6ed9b7a578 Remove unneeded argument names 2014-02-22 00:39:50 +04:00
Dmitry Marakasov
1ec8df2964 More Get() tests 2014-02-21 23:54:22 +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
015a9e5be5 Add partial GUI test 0.0.2 2014-02-11 07:41:23 +04:00
Dmitry Marakasov
2f91553068 Implement Renderer::ReadPixels 2014-02-11 07:41:20 +04:00
Dmitry Marakasov
47625fcd6c Make travis run tests 2014-02-11 06:16:05 +04:00
Dmitry Marakasov
820813b79f Improve testing framework, add stub for GUI tests 2014-02-11 06:15:01 +04:00
Dmitry Marakasov
f6d6572602 Fix Rect::FromCenter and add test for it 2014-02-11 06:01:36 +04:00
Dmitry Marakasov
07bf0aa3d5 Add Point and Rect tests 2014-02-11 05:51:15 +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
d55950f8aa Reword, fix typo 2014-02-07 04:48:41 +04:00
Dmitry Marakasov
11f19228ad Mention projects using this library 2014-02-06 13:33:05 +04:00
Dmitry Marakasov
fe210e177e Add another pixel perfectness test 2014-02-04 22:21:29 +04:00
Dmitry Marakasov
26de0e0cbd Remove demo_ prefix from demos 2014-02-04 22:21:15 +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
3df16d40d1 Add basic tests
For now the only thing checked is that header files compile by
themselves, e.g. includes and forward declarations in them are
complete and they do not require extra includes
2014-02-03 01:48:38 +04:00
Dmitry Marakasov
a8baa2df30 Move demos into separate CMakeLists.txt 2014-02-03 01:48:07 +04:00
Dmitry Marakasov
a64d6825d5 Update README 0.0.1 2014-02-01 03:36:52 +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
2decf5162f No need for SDL_RENDERER_TARGETTEXTURE here 2014-02-01 00:17:45 +04:00
Dmitry Marakasov
a50a6943f4 Add travis config file 2014-01-31 04:43:09 +04:00
Dmitry Marakasov
99302bb3ac Mark SDL2 detection variables as advanced 2014-01-15 02:25:54 +04:00
Dmitry Marakasov
e5475f781b Fix SDL2 cmake module 2014-01-13 02:19:16 +04:00
Dmitry Marakasov
ae62f2bcde Fix typos in README 2014-01-12 22:40:56 +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
b0d0cb7911 Rename demo directory to demos, as there're now actually multiple of them 2013-12-18 06:29:14 +04:00
Dmitry Marakasov
151f9704ac Merge branch 'master' of github.com:AMDmi3/libSDL2pp 2013-12-18 06:22:47 +04:00
Dmitry Marakasov
1ef083b40d Get rid of magic constants in rendertarget demo 2013-12-18 06:21:53 +04:00
Dmitry Marakasov
cb8153ab83 Add rendertarget demo 2013-12-18 06:16:10 +04:00
Dmitry Marakasov
21c7e3c73c Split demo into multiple programs to keep them simple and clear 2013-12-18 06:16:10 +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