KallistiOS git master
Independent SDK for the Sega Dreamcast
|
VMU framebuffer. More...
#include <sys/cdefs.h>
#include <dc/maple.h>
#include <dc/maple/vmu.h>
#include <stdint.h>
#include <stdarg.h>
Go to the source code of this file.
Data Structures | |
struct | vmufb_t |
Virtual framebuffer for the VMU. More... | |
struct | vmufb_font_t |
VMU framebuffer font meta-data. More... | |
Functions | |
void | vmufb_paint_area (vmufb_t *fb, unsigned int x, unsigned int y, unsigned int w, unsigned int h, const char *data) |
Render into the VMU framebuffer. | |
void | vmufb_clear_area (vmufb_t *fb, unsigned int x, unsigned int y, unsigned int w, unsigned int h) |
Clear a specific area of the VMU framebuffer. | |
void | vmufb_clear (vmufb_t *fb) |
Clear the VMU framebuffer. | |
void | vmufb_present (const vmufb_t *fb, maple_device_t *dev) |
Present the VMU framebuffer to a VMU. | |
void | vmufb_print_string_into (vmufb_t *fb, const vmufb_font_t *font, unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned int line_spacing, const char *str) |
Render a string into the VMU framebuffer. | |
static __inline__ void | vmufb_print_string (vmufb_t *fb, const vmufb_font_t *font, const char *str) |
Render a string into the VMU framebuffer. | |
void | vmu_printf (const char *fmt,...) __printflike(1 |
Render a string to attached VMUs using the built-in font. | |
void const vmufb_font_t * | vmu_set_font (const vmufb_font_t *font) |
Sets the default font for drawing text to the VMU. | |
const vmufb_font_t * | vmu_get_font (void) |
Returns the default font used to draw text to the VMU. | |
VMU framebuffer.
This file provides an API that can be used to compose a 48x32 image that can then be displayed on the VMUs connected to the system.