Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Relatively efficient lookup of GlyphData from 16-bit Unicode codepoint. More...
#include <Font.h>
Public Member Functions | |
GlyphMap () | |
~GlyphMap () | |
void | set (u16 i, const GlyphData &val) |
const GlyphData * | get (u16 i) const |
Private Member Functions | |
NONCOPYABLE (GlyphMap) | |
Private Attributes | |
GlyphData * | m_Data [256] |
Relatively efficient lookup of GlyphData from 16-bit Unicode codepoint.
This is stored as a sparse 2D array, exploiting the knowledge that a font typically only supports a small number of 256-codepoint blocks, so most elements of m_Data will be NULL.
CFont::GlyphMap::GlyphMap | ( | ) |
CFont::GlyphMap::~GlyphMap | ( | ) |
|
private |
|
private |