HAM Documentation

Home · Downloads · Your Account · Submit News

Documentation Homepage HAMLib reference Back to HAM Homepage |

# bg.c File Reference

BG Mode Control functions. More...

`#include "mygba.h"`

## 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.

## Detailed Description

BG Mode Control functions.

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