Abstract class for mapping character values to UV coordinates. More...
#include <CharacterMap.h>
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. | |
Abstract class for mapping character values to UV coordinates.
| halt::CharacterMap::CharacterMap | ( | int | texw, |
| int | texh | ||
| ) |
Creates a CharacterMap given a texture's width and height.
| texw | Texture width. |
| texh | Texture height. |
| virtual void halt::CharacterMap::Map | ( | int | value, |
| TerminalVertex * | base | ||
| ) | const [pure virtual] |
Maps a cell value to UV coordinates.
| value | Cell value to map. |
| base | Pointer to the vertices that need to be modified. It is safe to modify four vertices starting from this pointer. |
Implemented in halt::DefaultCharacterMap.
1.7.6.1