sdlterm/src/sdlterm.h
changeset 54 86b84535726e
parent 53 c4263588b716
child 57 911927edbdde
equal deleted inserted replaced
53:c4263588b716 54:86b84535726e
     5 #include <vector>
     5 #include <vector>
     6 
     6 
     7 
     7 
     8 namespace Style
     8 namespace Style
     9 {
     9 {
    10     const int BOLD      = 1 << 0;  // bold font
    10     enum {
    11     const int UNDERLINE = 1 << 1;  // underline text
    11         BOLD      = 1 << 0,  // bold font
    12     const int STANDOUT  = 1 << 2;  // inverse bg/fg
    12         UNDERLINE = 1 << 1,  // underline text
    13     const int BLINK     = 1 << 3;  // blinking
    13         STANDOUT  = 1 << 2,  // inverse bg/fg
       
    14         BLINK     = 1 << 3,  // blinking
       
    15     };
    14 };
    16 };
    15 
    17 
    16 
    18 
    17 class ColorMap
    19 class ColorMap
    18 {
    20 {
    52 private:
    54 private:
    53     std::map<Uint64, SDL_Surface*> _glyph_map;
    55     std::map<Uint64, SDL_Surface*> _glyph_map;
    54 };
    56 };
    55 
    57 
    56 
    58 
       
    59 /* TTF font glyph renderer
       
    60  *
       
    61  * Renders uniformly sized cells with single character.
       
    62  * Wraps SDL_ttf functions, see its documentation here:
       
    63  *
       
    64  * http://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html
       
    65  *
       
    66  */
    57 class GlyphRenderer
    67 class GlyphRenderer
    58 {
    68 {
    59 public:
    69 public:
    60     GlyphRenderer();
    70     GlyphRenderer();
    61     ~GlyphRenderer();
    71     ~GlyphRenderer();