Function SetFontTilesIndex

From Uzebox Wiki
Jump to: navigation, search
Prototype

void SetFontTilesIndex(unsigned char index);

Description

Required when using Print functions with video modes that have 8 bit oriented vram (ie: 2,3). This function defines which tile (in a previously defined tile set) is the first font tile (the space character).

Parameters
  • index: Tile index of the space character.
Returns

Void

Video Modes

2,3

Since

V2

Notes

You will usually have the game tiles and fonts is separate include files. Insure both include files are contiguous in memory by including your main tileset and the fonts next to each other.

See Also

SetTileTable()

Example:

//these includes must be next to each other
#include "data/mytiles.inc"
#include "data/myfont.inc"
...
SetTileTable(mytiles);
SetFontTilesIndex(MYTILES_TILESET_SIZE);