API for features of the LCD Maple Function.
More...
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.
◆ VMU_SCREEN_HEIGHT
#define VMU_SCREEN_HEIGHT 32 |
Pixel height of a standard VMU screen.
◆ VMU_SCREEN_WIDTH
#define VMU_SCREEN_WIDTH 48 |
Pixel width of a standard VMU screen.
◆ vmu_draw_lcd()
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.
- Parameters
-
dev | The device to draw to. |
bitmap | The bitmap to show. |
- Return values
-
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. |
- See also
- vmu_draw_lcd_rotated, vmu_draw_lcd_xbm, vmu_set_icon
◆ vmu_draw_lcd_rotated()
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.
- Warning
- This function is optimized by an assembly routine which operates on 32 bits at a time. As such, the given bitmap must be 4-byte aligned.
- Parameters
-
dev | The device to draw to. |
bitmap | The bitmap to show. |
- Return values
-
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. |
- See also
- vmu_draw_lcd, vmu_draw_lcd_xbm, vmu_set_icon
◆ vmu_draw_lcd_xbm()
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.
- Parameters
-
dev | The device to draw to. |
vmu_icon | The icon to set. |
- Return values
-
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. |
- See also
- vmu_draw_lcd, vmu_set_icon
◆ vmu_set_icon()
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.
- Note
- This is a convenience function for vmu_draw_lcd() to broadcast across all VMUs.
- Todo:
- Prevent this routine from broadcasting to rear VMUs.
- Parameters
-
- See also
- vmu_draw_lcd_xbm