--- a/sdlterm/src/sdlterm.h Sun Jan 06 13:55:02 2013 +0100
+++ b/sdlterm/src/sdlterm.h Sun Jan 06 23:03:24 2013 +0100
@@ -7,10 +7,12 @@
namespace Style
{
- const int BOLD = 1 << 0; // bold font
- const int UNDERLINE = 1 << 1; // underline text
- const int STANDOUT = 1 << 2; // inverse bg/fg
- const int BLINK = 1 << 3; // blinking
+ enum {
+ BOLD = 1 << 0, // bold font
+ UNDERLINE = 1 << 1, // underline text
+ STANDOUT = 1 << 2, // inverse bg/fg
+ BLINK = 1 << 3, // blinking
+ };
};
@@ -54,6 +56,14 @@
};
+/* TTF font glyph renderer
+ *
+ * Renders uniformly sized cells with single character.
+ * Wraps SDL_ttf functions, see its documentation here:
+ *
+ * http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html
+ *
+ */
class GlyphRenderer
{
public: