Root/frame_buffer/fbutils.h

1/*
2 * fbutils.h
3 *
4 * Headers for utility routines for framebuffer interaction
5 *
6 * Copyright 2002 Russell King and Doug Lowder
7 *
8 * This file is placed under the GPL. Please see the
9 * file COPYING for details.
10 *
11 */
12
13#ifndef _FBUTILS_H
14#define _FBUTILS_H
15
16#include <asm/types.h>
17
18/* This constant, being ORed with the color index tells the library
19 * to draw in exclusive-or mode (that is, drawing the same second time
20 * in the same place will remove the element leaving the background intact).
21 */
22#define XORMODE 0x80000000
23
24extern __u32 xres, yres;
25
26int open_framebuffer(void);
27void close_framebuffer(void);
28void setcolor(unsigned colidx, unsigned value);
29void put_cross(int x, int y, unsigned colidx);
30void put_string(int x, int y, char *s, unsigned colidx);
31void put_string_center(int x, int y, char *s, unsigned colidx);
32void pixel (int x, int y, unsigned colidx);
33void line (int x1, int y1, int x2, int y2, unsigned colidx);
34void rect (int x1, int y1, int x2, int y2, unsigned colidx);
35void fillrect (int x1, int y1, int x2, int y2, unsigned colidx);
36
37#endif /* _FBUTILS_H */
38

Archive Download this file

Branches:
master



interactive