HAM Documentation

Home · Downloads · Your Account · Submit News

Documentation Homepage HAMLib reference Back to HAM Homepage |

# tile.c File Reference

Tiled Mode Functions. More...

`#include "mygba.h"`

## Functions

void | ham_SetMapTile (u8 bgno, u32 x, u32 y, u32 tileno)
| Set a Tile on a map to any other Tile you want
void | ham_SetMapTileEx (u8 bgno, u32 x, u32 y, u32 tileno, u32 hflip, u32 vflip, u32 palno)
| Set a Tile on a map, and also set flip and palettes for the tile
u16 | ham_GetMapTile (u8 bgno, u8 x, u8 y)
| Return the Tile number on a maps X and Y position
tile_info_ptr | ham_InitTileSet (void *src, u16 size_u16, u8 col_mode, u8 cbb_only_mode)
| Initializes a Tile Set and Loads the Tile GFX into VRAM
tile_info_ptr | ham_InitTileEmptySet (u16 num_tiles, u8 col_mode, u8 cbb_only_mode)
| Initializes an Empty (all transparent) Tile Set
void | ham_ReloadTileGfx (tile_info_ptr ti, u16 *src, u16 target_tileno, u16 num_tiles)
| Reloads parts of a Tileset with new graphics data
void | ham_DeInitTileSet (tile_info_ptr ti)
| Deinitializes a Tile Set and unloads the GFX from GBA VRAM
void | ham_DeInitMapSet (map_info_ptr mi)
| Deinitializes a Map Set and unloads the map information from GBA VRAM
void | ham_DeInitMapFragment (map_fragment_info_ptr mfi)
| Deinitializes a Map Fragment and unloads the map information from GBA RAM
map_info_ptr | ham_InitMapSet (void *src, u16 size_u16, u8 map_size, u8 map_rot)
| Initializes a Map Set and loads it into GBA VRAM
map_fragment_info_ptr | ham_InitMapFragment (void *src, u16 map_total_x, u16 map_total_y, u16 map_ofs_x, u16 map_ofs_y, u8 map_tiles_x, u8 map_tiles_y, u8 map_rot)
| Initializes a Map Fragment (A rectangle within a Map)
void | ham_InsertMapFragment (map_fragment_info_ptr mfi, u8 bgno, u8 x, u8 y)
| Inserts a Map Fragment (A rectangle within a Map) into an onscreen Map
map_info_ptr | ham_InitMapEmptySet (u8 map_size, u8 map_rot)
| Initializes an Empty (all zero) Map Set in GBA VRAM

## Detailed Description

Tiled Mode Functions.

Documentation Homepage | HAMLib reference | Back to HAM Homepage
documentation created with Doxygen