Hardware Design: SIE
Sign in or create your account | Project List | Help
Hardware Design: SIE Git Source Tree
Root/
| 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 | |
| 24 | extern __u32 xres, yres; |
| 25 | |
| 26 | int open_framebuffer(void); |
| 27 | void close_framebuffer(void); |
| 28 | void setcolor(unsigned colidx, unsigned value); |
| 29 | void put_cross(int x, int y, unsigned colidx); |
| 30 | void put_string(int x, int y, char *s, unsigned colidx); |
| 31 | void put_string_center(int x, int y, char *s, unsigned colidx); |
| 32 | void pixel (int x, int y, unsigned colidx); |
| 33 | void line (int x1, int y1, int x2, int y2, unsigned colidx); |
| 34 | void rect (int x1, int y1, int x2, int y2, unsigned colidx); |
| 35 | void fillrect (int x1, int y1, int x2, int y2, unsigned colidx); |
| 36 | |
| 37 | #endif /* _FBUTILS_H */ |
| 38 |
Branches:
master
