Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CFont::GlyphMap Class Reference

Relatively efficient lookup of GlyphData from 16-bit Unicode codepoint. More...

#include <Font.h>

Collaboration diagram for CFont::GlyphMap:

Public Member Functions

 GlyphMap ()
 
 ~GlyphMap ()
 
void set (u16 i, const GlyphData &val)
 
const GlyphDataget (u16 i) const
 

Private Member Functions

 NONCOPYABLE (GlyphMap)
 

Private Attributes

GlyphDatam_Data [256]
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GlyphMap()

CFont::GlyphMap::GlyphMap ( )

◆ ~GlyphMap()

CFont::GlyphMap::~GlyphMap ( )

Member Function Documentation

◆ get()

const GlyphData * CFont::GlyphMap::get ( u16  i) const
inline

◆ NONCOPYABLE()

CFont::GlyphMap::NONCOPYABLE ( GlyphMap  )
private

◆ set()

void CFont::GlyphMap::set ( u16  i,
const GlyphData val 
)

Member Data Documentation

◆ m_Data

GlyphData* CFont::GlyphMap::m_Data[256]
private

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