KallistiOS
git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
fb_console.h
Go to the documentation of this file.
1
/* KallistiOS ##version##
2
3
dc/fb_console.h
4
Copyright (C) 2009 Lawrence Sebald
5
6
*/
7
8
/** \file dc/fb_console.h
9
\brief A simple dbgio interface to draw to the framebuffer.
10
\ingroup logging
11
12
This file contains definitions to interact with a simple framebuffer dbgio
13
interface. This interface can be moved around in memory and can have its
14
width and height set so that you can truly customize it to the environment
15
as needed. This utilizes the bios font functionality to actually draw any
16
characters.
17
18
To actually use the framebuffer device, pass "fb" as the parameter to
19
dbgio_dev_select().
20
21
\author Lawrence Sebald
22
*/
23
24
#ifndef __DC_FB_CONSOLE_H
25
#define __DC_FB_CONSOLE_H
26
27
#include <sys/cdefs.h>
28
__BEGIN_DECLS
29
30
#include <
kos/dbgio.h
>
31
32
/* \cond */
33
extern
dbgio_handler_t
dbgio_fb;
34
/* \endcond */
35
36
/** \brief Set the target for the framebuffer dbgio device.
37
38
This function allows you to set a target for the dbgio device on the
39
framebuffer. This allows you to do things like setting it to render to a
40
texture rather than to the whole framebuffer, for instance.
41
42
The default setup for the framebuffer dbgio device is to print to the full
43
640x480 framebuffer (minus a 32-pixel border around the outside). If you
44
change this, you can restore the original functionality by passing NULL for
45
t, 640 for w, 480 for h, and 32 for borderx and bordery.
46
47
\param t The target in memory to render to.
48
\param w The width of the target.
49
\param h The height of the target.
50
\param borderx How much border to leave around the target in the
51
X direction.
52
\param bordery How much border to leave around the target in the
53
Y direction.
54
*/
55
void
dbgio_fb_set_target
(
uint16
*t,
int
w,
int
h,
int
borderx,
int
bordery);
56
57
__END_DECLS
58
59
#endif
/* __DC_FB_CONSOLE_H */
dbgio.h
Debug I/O.
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.
uint16
unsigned short uint16
16-bit unsigned integer
Definition
types.h:34
dbgio_handler_t
Debug I/O Interface.
Definition
dbgio.h:39
kernel
arch
dreamcast
include
dc
fb_console.h
Generated by
1.12.0