Function DrawMap2

From Uzebox Wiki
Jump to: navigation, search
Prototype

void DrawMap2(unsigned char x,unsigned char y,const char *map);

Description

Draws a rectangular map pointed to by *map at the specified coordinates. Maps are char arrays in which the two first bytes respectively specifies the width and height of the map. These function expects the data to be located in flash (PROGMEM).

Parameters
  • x: Position from left of screen
  • y: Position from top of screen
  • map: Pointer to const char array in PROGMEM.
Returns

Void

Video Modes

2,3

Since

V2

Notes

This function is for use with byte oriented VRAM video modes (Mode 2,3). For word oriented modes (1) use DrawMap().