Main Page | Modules | Related Pages

Bitmap Mode Functions

Functions


Function Documentation

void hel_BmpClear u16  Color  ) 
 

Clear screen/backbuffer in mode 3, 4 or 5.

Parameters:
Color The PaletteIndex in mode4, the Colorvalue in mode 3 and 5
This function clears the screen with the specified color in mode 3, and clears the backbuffer in mode 4 and 5.

Note:
In mode 3 and 5, use RGB macro to generate a 15bit BGR colorvalue. This macro can be found in HAM header mygba.h.

u16* hel_BmpGetBackBuffer void   ) 
 

Get a pointer to the backbuffer in mode 4 or 5.

Returns:
The hel_BmpGetBackBuffer function returns a pointer to the current backbuffer
Note:
Only mode 4 and 5 have a backbuffer.

void hel_BmpLoad const void *  pSrc  ) 
 

Load a graphic into VideoRAM.

Parameters:
pSrc Pointer to source graphic data.
Note:
The graphic data has to be in the following format:
  • Mode 3 : 240*160 pixels, 15bit BGR
  • Mode 4 : 240*160 pixels, 8 bit
  • Mode 5 : 160*120 pixels, 15bit BGR
See also:
hel_BmpLoadUnComp

void hel_BmpLoadUnComp const void *  pSrc,
u32  CompressionType
 

Load a compressed graphic into VideoRAM.

Parameters:
pSrc Pointer to compressed source graphic data.
CompressionType Type of Compression the graphic data uses. This can be one of the COMPRESSION_TYPE_* predefined values.
Note:
The graphic data has to be in the following format:
  • Mode 3 : 240*160 pixels, 15bit BGR
  • Mode 4 : 240*160 pixels, 8 bit
  • Mode 5 : 160*120 pixels, 15bit BGR
See also:
hel_BmpLoad, hel_SwiUnComp


Generated on Mon Aug 22 20:43:41 2005 by DoxyGen 1.4.4