Halt
Hardware accelerated terminal
 All Classes Functions Variables
Public Member Functions | Public Attributes
halt::CharacterMap Class Reference

Abstract class for mapping character values to UV coordinates. More...

#include <CharacterMap.h>

Inheritance diagram for halt::CharacterMap:
halt::DefaultCharacterMap

List of all members.

Public Member Functions

 CharacterMap (int texw, int texh)
 Creates a CharacterMap given a texture's width and height.
virtual void Map (int value, TerminalVertex *base) const =0
 Maps a cell value to UV coordinates.

Public Attributes

int tx_width
 Width of the texture used to render the terminal.
int tx_height
 Height of the texture used to render the terminal.

Detailed Description

Abstract class for mapping character values to UV coordinates.


Constructor & Destructor Documentation

halt::CharacterMap::CharacterMap ( int  texw,
int  texh 
)

Creates a CharacterMap given a texture's width and height.

Parameters:
texwTexture width.
texhTexture height.

Member Function Documentation

virtual void halt::CharacterMap::Map ( int  value,
TerminalVertex *  base 
) const [pure virtual]

Maps a cell value to UV coordinates.

Parameters:
valueCell value to map.
basePointer to the vertices that need to be modified. It is safe to modify four vertices starting from this pointer.
See also:
TerminalVertex

Implemented in halt::DefaultCharacterMap.


The documentation for this class was generated from the following files:
 All Classes Functions Variables