14 Commits

Author SHA1 Message Date
Dmitry Marakasov
24482d85f6 Follow SDL2 include path conventions
Though these are broken and error prone, as they ignore the possibility
of conflicts between SDL, SDL2 and wrappers thereof discarding useful
include path prefix (SDL2/), since SDL and satellite libraries follow
these it's too hard to stay away.

So don't use prefixes for SDL include paths any longer.
2017-02-08 13:19:04 +03:00
Dmitry Marakasov
0aede126fc Fix main() signatures to be compatible with SDL_main 2015-12-15 22:06:56 +03:00
Dmitry Marakasov
635deff498 Add utf8 and utf16 cases to the demo 2015-05-14 18:04:30 +03:00
Dmitry Marakasov
7403182cc9 Make ttf demo more flexible 2015-05-14 16:29:51 +03:00
Dmitry Marakasov
8636fb651f Simplify exception handling 2015-03-20 15:04:07 +03:00
Dmitry Marakasov
2869db24ef Remove unneeded parentheses, fix README example 2015-01-21 23:15:18 +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
7d00d3bbb2 Add outline to font demo 2014-12-29 21:38:38 +03:00
Dmitry Marakasov
31c68423fc Use size getters 2014-12-29 21:38:21 +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
f1398b54df Implement basic ttf rendering, use in example 2014-12-28 06:15:46 +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
9a9aa0b05c Add stub for ttf example 2014-12-28 03:35:38 +03:00