VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gr::Glyph Class Reference

A class for mapping characters to 8x8 glyphs. More...

#include <grglyph.h>

Public Types

typedef std::vector< bool > row_type
 
typedef std::vector< row_type > matrix_type
 

Static Public Member Functions

static matrix_type matrix (char c)
 Returns a glyph matrix for the given character.
 
template<typename Tout >
static void output (const std::string &s, Tout &out_functor)
 Calls an (x,y,bool) functor for all the glyph points corresponding to the given line of text, with no support for line-wrapping. More...
 

Detailed Description

A class for mapping characters to 8x8 glyphs.

Definition at line 36 of file grglyph.h.

Member Function Documentation

template<typename Tout >
void Gr::Glyph::output ( const std::string &  s,
Tout &  out_functor 
)
static

Calls an (x,y,bool) functor for all the glyph points corresponding to the given line of text, with no support for line-wrapping.

The functor call order is suitable for a raster scan, ie. the x parameter varies fastest and traverses the whole string before the y parameter is incremented.

An 'off' pixel is added at the end of each characer raster scan (including the last character), so there are nine horizontal pixels per character and a total of eight vertical pixels.

Definition at line 67 of file grglyph.h.


The documentation for this class was generated from the following files: