![]() | ![]() ![]() |
| Home · Downloads · Your Account · Submit News |
|
Documentation Homepage HAMLib reference Back to HAM Homepage |
|
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 | |
|
|
Deinitializes a Map Fragment and unloads the map information from GBA RAM
See also: ham_InitBg() ham_InitMapFragment() |
|
|
Deinitializes a Map Set and unloads the map information from GBA VRAM
See also: ham_InitBg() ham_InitMapSet() |
|
|
Deinitializes a Tile Set and unloads the GFX from GBA VRAM
See also: ham_InitBg() ham_InitTileSet() |
|
||||||||||||||||
|
Return the Tile number on a maps X and Y position
Attention: The BG this is used on needs to be set up using ham_InitBg() for this function to work. See also: ham_InitBg() |
|
||||||||||||
|
Initializes an Empty (all zero) Map Set in GBA VRAM
YOu can then for example populate this empty map with ham_InsertMapFragment() . See also: ham_InitBg() ham_DeInitMapSet() ham_InsertMapFragment() |
|
||||||||||||||||||||||||||||||||||||
|
Initializes a Map Fragment (A rectangle within a Map)
See also: ham_DeInitMapFragment() ham_InsertMapFragment() |
|
||||||||||||||||||||
|
Initializes a Map Set and loads it into GBA VRAM
See also: ham_InitBg() ham_DeInitMapSet() |
|
||||||||||||||||
|
Initializes an Empty (all transparent) Tile Set
See also: ham_ReloadTileGfx() ham_InitBg() |
|
||||||||||||||||||||
|
Initializes a Tile Set and Loads the Tile GFX into VRAM
See also: ham_InitBg() |
|
||||||||||||||||||||
|
Inserts a Map Fragment (A rectangle within a Map) into an onscreen Map
See also: ham_DeInitMapFragment() ham_InitMapFragment() |
|
||||||||||||||||||||
|
Reloads parts of a Tileset with new graphics data
|
|
||||||||||||||||||||
|
Set a Tile on a map to any other Tile you want
Attention: The BG this is used on needs to be set up using ham_InitBg() for this function to work. See also: ham_InitBg() ham_InitMapSet() ham_InitTileSet() ham_InitMapEmptySet() ham_InitMapFragment() |
|
||||||||||||||||||||||||||||||||
|
Set a Tile on a map, and also set flip and palettes for the tile
Attention: The BG this is used on needs to be set up using ham_InitBg() for this function to work. See also: ham_InitBg() ham_InitMapSet() ham_InitTileSet() ham_InitMapEmptySet() ham_InitMapFragment() |