|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Extra mini-font provided for Dreamcast and NAOMI More...
Files | |
| file | minifont.h |
| Simple font drawing functions. | |
Functions | |
| int | minifont_draw (uint16_t *buffer, uint32_t bufwidth, uint32_t c) |
| Draw a single character to a buffer. | |
| int | minifont_draw_str (uint16_t *b, uint32_t bufwidth, const char *str) |
| Draw a full string to any sort of buffer. | |
| void | minifont_set_color (uint8_t r, uint8_t g, uint8_t b) |
| Set the color for the mini font. | |
Extra mini-font provided for Dreamcast and NAOMI
| int minifont_draw | ( | uint16_t * | buffer, |
| uint32_t | bufwidth, | ||
| uint32_t | c ) |
Draw a single character to a buffer.
This function draws a single character to the given buffer.
| buffer | The buffer to draw to (at least 8 x 16 pixels) |
| bufwidth | The width of the buffer in pixels |
| c | The character to draw |
| int minifont_draw_str | ( | uint16_t * | b, |
| uint32_t | bufwidth, | ||
| const char * | str ) |
Draw a full string to any sort of buffer.
This function draws a NUL-terminated string to the given buffer. Only standard ASCII encoded strings are supported (no extended ASCII, ANSI, Unicode, JIS, EUC, etc).
| b | The buffer to draw to. |
| bufwidth | The width of the buffer in pixels. |
| str | The string to draw. |
Referenced by main().
| void minifont_set_color | ( | uint8_t | r, |
| uint8_t | g, | ||
| uint8_t | b ) |
Set the color for the mini font.
| r | Red component (0-255) |
| g | Green component (0-255) |
| b | Blue component (0-255) |