KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
fb_console.h File Reference

A simple dbgio interface to draw to the framebuffer. More...

#include <sys/cdefs.h>
#include <kos/dbgio.h>

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.
 

Detailed Description

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().

Author
Lawrence Sebald

Function Documentation

◆ dbgio_fb_set_target()

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.

Parameters
tThe target in memory to render to.
wThe width of the target.
hThe height of the target.
borderxHow much border to leave around the target in the X direction.
borderyHow much border to leave around the target in the Y direction.