376 Commits

Author SHA1 Message Date
Dmitry Marakasov
9a3f3339ef Implement all font rendering functions 2014-12-29 05:05:23 +03:00
Dmitry Marakasov
8a7d5cab0e Make example more demonstrative 2014-12-28 06:38:29 +03:00
Dmitry Marakasov
5a72312d82 Offset by real surface size 2014-12-28 06:36:27 +03:00
Dmitry Marakasov
7ef064819b Add SDL2PP_WITH_TTF knob to Config.hh 2014-12-28 06:32:18 +03:00
Dmitry Marakasov
bd286d5573 Fix documentation 2014-12-28 06:17:18 +03:00
Dmitry Marakasov
f1398b54df Implement basic ttf rendering, use in example 2014-12-28 06:15:46 +03:00
Dmitry Marakasov
ffdeb9465d Merge branch 'master' into ttf
Conflicts:
	CMakeLists.txt
	SDL2pp/SDL2pp.hh
2014-12-28 06:14:12 +03:00
Dmitry Marakasov
835ce5d7c0 Include SDLImage conditionally 2014-12-28 06:09:59 +03:00
Dmitry Marakasov
0c0a7aad15 Only add image-related sources to the project if SDL_image support is enabled 2014-12-28 06:09:47 +03:00
Dmitry Marakasov
25bbd97b3e Add constructors from existing SDL2 objects 2014-12-28 06:06:22 +03:00
Dmitry Marakasov
0557464b56 Merge branch 'surface'
Conflicts:
	CMakeLists.txt
2014-12-28 04:29:07 +03:00
Dmitry Marakasov
37c873466f Fix structure name in documentation 2014-12-28 04:02:40 +03:00
Dmitry Marakasov
cf79498c5e Bundle Bitstream Vera font
It's not that large (even smaller than our example .wav file), has
liberal license and saves us from complexity of finding system
font. Later I may consider installing it as a default font to make
ttf features of SDL2pp usable out-of-box without need for extra
fonts.
2014-12-28 04:01:58 +03:00
Dmitry Marakasov
ffc2caf14d If font is not found, just don't build example instead of failing 2014-12-28 03:50:22 +03:00
Dmitry Marakasov
3570d812eb Add more possible paths to Vera.ttf 2014-12-28 03:49:50 +03:00
Dmitry Marakasov
54903db243 Install library and font necessary for ttf support 2014-12-28 03:38:50 +03:00
Dmitry Marakasov
9a9aa0b05c Add stub for ttf example 2014-12-28 03:35:38 +03:00
Dmitry Marakasov
f698d8cffa Add ttf-related includes to the main header 2014-12-28 03:35:01 +03:00
Dmitry Marakasov
48e5332f02 Add option and check for SDL_ttf support, add ttf files to build 2014-12-28 03:33:24 +03:00
Dmitry Marakasov
31d948b944 Add stub for Font class 2014-12-28 03:32:38 +03:00
Dmitry Marakasov
4fff7d6cf9 Add SDLTTF class for SDL_ttf init/deinit 2014-12-28 03:32:13 +03:00
Dmitry Marakasov
9e4bdac8cf Add cmake module to find SDL_ttf 2014-12-28 03:31:37 +03:00
Dmitry Marakasov
f9ff522e95 Merge tag '0.5.1'
Conflicts:
	CMakeLists.txt
2014-12-27 21:52:37 +03:00
Dmitry Marakasov
79300dea2b Use surface in example 2014-12-27 21:46:07 +03:00
Dmitry Marakasov
fff166becd Allow to create Texture from Surface 2014-12-27 21:45:53 +03:00
Dmitry Marakasov
6e90301ba1 Add SDL_image surface loaders 2014-12-27 21:30:59 +03:00
Dmitry Marakasov
6db6d0c1bc Implement most Surface functions 2014-12-27 21:21:51 +03:00
Dmitry Marakasov
a1d01e89d4 Add Point/Rect constructors taking SDL_Point/SDL_Rect 2014-12-27 21:21:29 +03:00
Dmitry Marakasov
057804e814 Fix copypasta 2014-12-27 19:01:30 +03:00
Dmitry Marakasov
607e9e09d0 Implement surface locking 2014-12-27 19:01:28 +03:00
Dmitry Marakasov
60f8e7febc Fix copypasta in documentation 2014-12-27 19:00:03 +03:00
Dmitry Marakasov
4fef91c90a Merge branch 'sdl_image' 2014-12-27 05:39:59 +03:00
Dmitry Marakasov
63065bc820 Add note on minimal compiler versions 2014-12-27 05:23:46 +03:00
Dmitry Marakasov
53308e04f7 Display library version during the build 2014-12-27 05:23:33 +03:00
Dmitry Marakasov
e0032de447 Implement wrapper for SDL_image init/deinit
Fixes #21
2014-12-27 05:22:12 +03:00
Dmitry Marakasov
ad1e6879df Check for errors after calling SDL_image functions
Fixes #20
2014-12-27 05:17:01 +03:00
Dmitry Marakasov
69d93bc6e4 Bump soversion after abi-incompatible change 2014-12-27 02:37:46 +03:00
Dmitry Marakasov
7bb9c57cb4 Bump soversion after abi-incompatible change 0.5.1 2014-12-27 02:36:53 +03:00
Dmitry Marakasov
f6dc70863e Merge branch 'error-handling'
Conflicts:
	SDL2pp/Exception.hh
2014-12-27 02:32:38 +03:00
Dmitry Marakasov
f4fdd89390 Bump version to 0.5.1 2014-12-27 02:30:29 +03:00
Dmitry Marakasov
64952aea9a Use stock function instead of reimplementing with RWops 2014-12-27 02:28:42 +03:00
Dmitry Marakasov
4bf7fbd52c Store SDL error inside Exception
Fixes #22
2014-12-27 02:07:07 +03:00
Dmitry Marakasov
f5216c309f Add (failing) test for #22 2014-12-27 02:06:05 +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
f4c2832d90 Add missing \see 2014-12-27 00:01:22 +03:00
Dmitry Marakasov
e0654f045b Consistency with other member variable docs 2014-12-27 00:01:09 +03:00
Dmitry Marakasov
7b9f951eff Document Surface class 2014-12-27 00:00:18 +03:00
Dmitry Marakasov
f1fa69a4ce Add Surface class stub 2014-12-26 23:00:12 +03:00
Dmitry Marakasov
1c7159c39a Bump version for the next release 2014-12-26 22:50:35 +03:00
Dmitry Marakasov
bdc5b11e48 Call doxygen from cmake
Among other things, this allows to substitude project version into
Doxyfile
2014-12-26 22:49:41 +03:00