Function SetTile

From Uzebox Wiki
Revision as of 03:07, 4 March 2009 by Uze6666 (talk | contribs) (New page: {{Function |prototype = void SetTile(char x,char y, unsigned int tileId); |description = Draws a tile in vram at the specified location. You need to first set the tile set to use with [[...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Prototype

void SetTile(char x,char y, unsigned int tileId);

Description

Draws a tile in vram at the specified location. You need to first set the tile set to use with SetTileTable().

Parameters
  • x,y: Location on screen to draw the tile.
  • tileId: Tile index relative to beginning of tile table.
Returns

Void

Video Modes

All

Since

V1

Example:

#include "data/mytiles.inc";
...
SetTileTable(mytiles);
ClearVram();
SetTile(10,10,1);