< index < 2. Console emulator < 2.1 Initializing the console |
===================================== |
C++ : static void TCODConsole::mapAsciiCodeToFont(int asciiCode, int fontCharX, int fontCharY) C : void TCOD_console_map_ascii_code_to_font(int asciiCode, int fontCharX, int fontCharY)
Parameter | Description |
---|---|
asciiCode | ASCII code to map, between 0 and 255. |
fontCharX, fontCharY | Coordinate of the character in the bitmap font (in characters, not pixels). |
C++ : static void TCODConsole::mapAsciiCodesToFont(int firstAsciiCode, int nbCodes, int fontCharX, int fontCharY) C : void TCOD_console_map_ascii_codes_to_font(int firstAsciiCode, int nbCodes, int fontCharX, int fontCharY)
Parameter | Description |
---|---|
firstAsciiCode | first ASCII code to map, between 0 and 255. |
nbCodes | Number of consecutive ASCII codes to map |
fontCharX, fontCharY | Coordinate of the character in the bitmap font (in characters, not pixels) corresponding to the first ASCII code. |
C++ : static void TCODConsole::mapStringToFont(const char *s, int fontCharX, int fontCharY) C : void TCOD_console_map_string_to_font(const char *s, int fontCharX, int fontCharY)
Parameter | Description |
---|---|
s | String containing the ASCII codes to map. |
fontCharX, fontCharY | Coordinate of the character in the bitmap font (in characters, not pixels) corresponding to the first ASCII code in the string. |