52typedef struct vmufb_font {
76 unsigned int x,
unsigned int y,
77 unsigned int w,
unsigned int h,
94 unsigned int x,
unsigned int y,
95 unsigned int w,
unsigned int h);
135 unsigned int x,
unsigned int y,
136 unsigned int w,
unsigned int h,
137 unsigned int line_spacing,
#define VMU_SCREEN_WIDTH
Pixel width of a standard VMU screen.
Definition vmu.h:236
#define VMU_SCREEN_HEIGHT
Pixel height of a standard VMU screen.
Definition vmu.h:242
#define __printflike(fmtarg, firstvararg)
Identify a function as accepting formatting like printf().
Definition cdefs.h:132
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.
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_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.
static __inline__ void vmufb_print_string(vmufb_t *fb, const vmufb_font_t *font, const char *str)
Render a string into the VMU framebuffer.
Definition vmu_fb.h:151
void vmu_printf(const char *fmt,...) __printflike(1
Render a string to attached VMUs using the built-in font.
void vmufb_clear(vmufb_t *fb)
Clear the VMU framebuffer.
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.
Maple Bus driver interface.
One maple device.
Definition maple.h:270
VMU framebuffer font meta-data.
Definition vmu_fb.h:52
unsigned int h
Character height in pixels.
Definition vmu_fb.h:55
unsigned int id
Font id.
Definition vmu_fb.h:53
const char * fontdata
Pointer to the font data.
Definition vmu_fb.h:57
size_t stride
Size of one character in bytes.
Definition vmu_fb.h:56
unsigned int w
Character width in pixels.
Definition vmu_fb.h:54
Virtual framebuffer for the VMU.
Definition vmu_fb.h:43
Definitions for using the VMU device.