KallistiOS
##version##
|
A simple dbgio interface to draw to the framebuffer. More...
Go to the source code of this file.
Functions | |
void | dbgio_fb_set_target (uint16 *t, int w, int h, int borderx, int bordery) |
Set the target for the framebuffer dbgio device. More... | |
A simple dbgio interface to draw to the framebuffer.
This file contains definitions to interact with a simple framebuffer dbgio interface. This interface can be moved around in memory and can have its width and height set so that you can truly customize it to the environment as needed. This utilizes the bios font functionality to actually draw any characters.
To actually use the framebuffer device, pass "fb" as the parameter to dbgio_dev_select().
void dbgio_fb_set_target | ( | uint16 * | t, |
int | w, | ||
int | h, | ||
int | borderx, | ||
int | bordery | ||
) |
Set the target for the framebuffer dbgio device.
This function allows you to set a target for the dbgio device on the framebuffer. This allows you to do things like setting it to render to a texture rather than to the whole framebuffer, for instance.
The default setup for the framebuffer dbgio device is to print to the full 640x480 framebuffer (minus a 32-pixel border around the outside). If you change this, you can restore the original functionality by passing NULL for t, 640 for w, 480 for h, and 32 for borderx and bordery.
t | The target in memory to render to. |
w | The width of the target. |
h | The height of the target. |
borderx | How much border to leave around the target in the X direction. |
bordery | How much border to leave around the target in the Y direction. |