21 Commits

Author SHA1 Message Date
Vladimir Gamalian
990efa6ef6 Remove unused variables 2015-10-15 16:45:08 +07:00
Carsten Elton Sorensen
198b0bbbc8 Added GetDrawableSize, GetDrawableWidth and GetDrawableHeight for HiDPI support 2015-10-15 09:44:35 +02:00
Dmitry Marakasov
206d430e25 Fix argument types to match upstream API 2015-09-17 15:32:47 +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
ecf9731750 Implement more Window methods 2015-01-19 23:29:51 +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
713f42fe1d Make setters return reference to self: Window 2015-01-19 00:52:15 +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
25bbd97b3e Add constructors from existing SDL2 objects 2014-12-28 06:06:22 +03:00
Dmitry Marakasov
0007a489c3 Move Get to the top of memeber functions for consistency with other classes 2014-12-27 00:02:08 +03:00
Dmitry Marakasov
5a0623f08e Add bunch of Window functions 2014-12-26 19:32:40 +03:00
Dmitry Marakasov
46591a9cbf Update project comment 2014-12-18 02:52:08 +03:00
Dmitry Marakasov
0124e2703a Update copyright years 2014-12-18 02:51:49 +03:00
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
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
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
c122f11643 Initial import 2013-09-06 01:47:05 +04:00