745 Commits

Author SHA1 Message Date
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
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
Dmitry Marakasov
d70fa634ea Merge pull request #5 from Lowest0ne/ignore-cmake
ignore cmake generated files
2013-11-15 06:47:56 -08:00
Dmitry Marakasov
c1fb7405c3 Merge pull request #6 from Lowest0ne/fill-rect
call SDL_RenderFillRect
2013-11-15 06:45:35 -08:00
Carl Schwope
0e663f21d7 call SDL_RenderFillRect 2013-11-15 01:44:22 -05:00
Carl Schwope
0f48223d2b ignore cmake generated files 2013-11-14 16:08:59 -05:00
Carl Schwope
1c1f37b76e make destructors virtual 2013-11-14 15:53:51 -05:00
Dmitry Marakasov
150830b270 Add exception handling to the demo 2013-09-21 04:33:33 +04:00
Dmitry Marakasov
6e54088c9e Add a note on that objects are freed 2013-09-20 23:34:25 +04: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
8b0b6548f7 Add mention of C++11 2013-09-06 02:00:30 +04:00
Dmitry Marakasov
d4fe882c68 Update README 2013-09-06 01:53:15 +04:00
Dmitry Marakasov
c122f11643 Initial import 2013-09-06 01:47:05 +04:00