![]() | ![]() ![]() |
| Home · Downloads · Your Account · Submit News |
|
Documentation Homepage HAMLib reference Back to HAM Homepage |
|
Functions | |
| void | ham_InitBg (u16 bgno, u16 active, u16 prio, u16 mosaic) |
| Initialize a tiled BG for use in HAM. | |
| void | ham_ResetBg () |
| Reinitialize the complete BG system. | |
| void | ham_DeInitBg (u16 bgno) |
| Deinitialize a BG again. | |
| u8 | ham_GetBgType (u8 bgno) |
| Retrieve if BG is rotation compatible. | |
| void | ham_SetBgMode (u8 bgmode) |
| Set the GBA hardware to operate in new BGMode. | |
| void | ham_SetBgVisible (u32 bgno, u32 active) |
| Turn a specific BG layer on or off. | |
| void | ham_SetBgXY (u16 bgno, u16 x, u16 y) |
| Set the Scroll offset of a BG Layer. | |
|
|
Deinitialize a BG again.
For more information on tiles and maps, see ham_InitTileSet() , ham_InitMapSet() and ham_InitMapEmptySet() |
|
|
Retrieve if BG is rotation compatible.
|
|
||||||||||||||||||||
|
Initialize a tiled BG for use in HAM.
A TileSet is a collection of 8*8 pixel Tile graphics that will be used when constructing this BG A MapSet is a collection of data that defines which Tile goes where on the display. See ham_SetMapTile() for information how to later change the tile assignment. For more information on how to assign these to a BG, see ham_InitTileSet() , ham_InitMapSet() and ham_InitMapEmptySet() See also: ham_SetMapTile() ham_InitMapSet() ham_InitTileSet() ham_InitMapEmptySet() ham_InitMapFragment() |
|
|
Reinitialize the complete BG system.
This function will reset the BG (Tile mode) systems of HAM. It will clear the VRAM for BG and also clear all map and tile assignments for BG0 - BG3. It will not switch to a different BGMode though, this information will persist. The state generated, apart from the BG Mode currently set, equals the initial state when using HAMlib. See also: ham_ResetObj() ham_InitBg() ham_InitTileSet() , ham_InitMapSet() , ham_InitMapEmptySet() |
|
|
Set the GBA hardware to operate in new BGMode.
|
|
||||||||||||
|
Turn a specific BG layer on or off.
See also: ham_SetBgMode() ham_InitBg() |
|
||||||||||||||||
|
Set the Scroll offset of a BG Layer.
See also: ham_RotBg() ham_RotBgEx() ham_RotObjDefineSet() |