KallistiOS git master
Independent SDK for the Sega Dreamcast
|
API for features of the LCD Maple Function More...
Macros | |
#define | VMU_SCREEN_WIDTH 48 |
Pixel width of a standard VMU screen. | |
#define | VMU_SCREEN_HEIGHT 32 |
Pixel height of a standard VMU screen. | |
Functions | |
int | vmu_draw_lcd (maple_device_t *dev, const void *bitmap) |
Display a 1bpp bitmap on a VMU screen. | |
int | vmu_draw_lcd_rotated (maple_device_t *dev, const void *bitmap) |
Display a 1bpp bitmap on a VMU screen. | |
int | vmu_draw_lcd_xbm (maple_device_t *dev, const char *vmu_icon) |
Display a Xwindows XBM image on a VMU screen. | |
void | vmu_set_icon (const char *vmu_icon) |
Display a Xwindows XBM on all VMUs. | |
API for features of the LCD Maple Function
The LCD Maple function is for exposing a secondary LCD screen that gets attached to a controller, which can be used to display additional game information, or information you only want visible to a single player.
#define VMU_SCREEN_HEIGHT 32 |
Pixel height of a standard VMU screen.
Referenced by vmufb_print_string().
#define VMU_SCREEN_WIDTH 48 |
Pixel width of a standard VMU screen.
Referenced by vmufb_print_string().
int vmu_draw_lcd | ( | maple_device_t * | dev, |
const void * | bitmap ) |
Display a 1bpp bitmap on a VMU screen.
This function sends a raw bitmap to a VMU to display on its screen. This bitmap is 1bpp, and is 48x32 in size.
dev | The device to draw to. |
bitmap | The bitmap to show. |
MAPLE_EOK | On success. |
MAPLE_EAGAIN | If the command couldn't be sent. Try again later. |
MAPLE_ETIMEOUT | If the command timed out while blocking. |
int vmu_draw_lcd_rotated | ( | maple_device_t * | dev, |
const void * | bitmap ) |
Display a 1bpp bitmap on a VMU screen.
This function sends a raw bitmap to a VMU to display on its screen. This bitmap is 1bpp, and is 48x32 in size. This function is equivalent to vmu_draw_lcd(), but the image is rotated 180° so that the first byte of the bitmap corresponds to the top-left corner, instead of the bottom-right one.
dev | The device to draw to. |
bitmap | The bitmap to show. |
MAPLE_EOK | On success. |
MAPLE_EAGAIN | If the command couldn't be sent. Try again later. |
MAPLE_ETIMEOUT | If the command timed out while blocking. |
int vmu_draw_lcd_xbm | ( | maple_device_t * | dev, |
const char * | vmu_icon ) |
Display a Xwindows XBM image on a VMU screen.
This function takes in a Xwindows XBM, converts it to a raw bitmap, and sends it to a VMU to display on its screen. This XBM image is 48x32 in size.
dev | The device to draw to. |
vmu_icon | The icon to set. |
MAPLE_EOK | On success. |
MAPLE_EAGAIN | If the command couldn't be sent. Try again later. |
MAPLE_ETIMEOUT | If the command timed out while blocking. |
void vmu_set_icon | ( | const char * | vmu_icon | ) |
Display a Xwindows XBM on all VMUs.
This function takes in a Xwindows XBM and displays the image on all VMUs.
vmu_icon | The icon to set. |