Home  ·  Downloads  ·  Your Account  ·  Submit News
Documentation Homepage
HAMLib reference
Back to HAM Homepage


bitmap.c File Reference

Bitmap Mode functions. More...

#include "mygba.h"

Defines

#define R_DMA3CNT32   *(volatile u32 *)(MEM_IO + 0x0DC)

Functions

void ham_ClearBackBuffer (u32 col_value)
 Set the back buffer to a given color value.

void ham_PutPixel (u32 x, u32 y, u32 col_value)
 Plot a single Pixel in Bitmap Mode.

void ham_PutLine (s16 x1, s16 y1, s16 x2, s16 y2, u16 col_value)
 Plot a straight line in Bitmap modes.

void ham_LoadBitmap (void *src)
 Load a Bitmap into the Video RAM.

void ham_FlipBGBuffer ()
 Flip the back buffer with the front (currently shown) buffer.

u8 ham_GetBGBuffer ()
 Get the current buffer number in BGmodes 4 and 5.


Detailed Description

Bitmap Mode functions.



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