Subversion Repositories shark

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/**
22
 ------------
80 pj 23
 CVS :        $Id: glib.h,v 1.2 2003-03-13 13:38:28 pj Exp $
2 pj 24
 
25
 File:        $File$
80 pj 26
 Revision:    $Revision: 1.2 $
27
 Last update: $Date: 2003-03-13 13:38:28 $
2 pj 28
 ------------
29
 
30
**/
31
 
32
/*
33
 * Copyright (C) 2000 Luca Abeni
34
 *
35
 * This program is free software; you can redistribute it and/or modify
36
 * it under the terms of the GNU General Public License as published by
37
 * the Free Software Foundation; either version 2 of the License, or
38
 * (at your option) any later version.
39
 *
40
 * This program is distributed in the hope that it will be useful,
41
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
42
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43
 * GNU General Public License for more details.
44
 *
45
 * You should have received a copy of the GNU General Public License
46
 * along with this program; if not, write to the Free Software
47
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
48
 *
49
 */
50
 
51
#ifndef __GLIB_H__
52
#define __GLIB_H__
53
 
54
#include <ll/sys/types.h>
55
#include <drivers/gd.h>
80 pj 56
#include "ll/sys/cdefs.h"
2 pj 57
 
80 pj 58
__BEGIN_DECLS
59
 
2 pj 60
int grx_init(void);
61
int grx_setmode(WORD mode);
62
int grx_close(void);
63
extern void (*grx_plot)(WORD x, WORD y, DWORD color);
64
extern DWORD (*grx_getpixel)(WORD x, WORD y);
65
extern void (*grx_getimage)(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *img);
66
extern void (*grx_putimage)(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *img);
67
extern void (*grx_box)(WORD x1, WORD y1, WORD x2, WORD y2, DWORD color);
68
extern void (*grx_rect)(WORD x1, WORD y1, WORD x2, WORD y2, DWORD color);
69
extern void (*grx_line)(WORD x1, WORD y1, WORD x2, WORD y2, DWORD color);
70
extern void (*grx_text)(char *text, WORD x, WORD y, DWORD fg, DWORD bg);
71
extern void (*grx_circle)(WORD x, WORD y, WORD r, DWORD col);
72
extern void (*grx_disc)(WORD x, WORD y, WORD r, DWORD col);
73
 
74
void grx_modeinfo(void);
75
int grx_getmode(WORD x, WORD y, BYTE depth);
76
void grx_cardinfo(void);
77
 
78
void grx_setcolor(BYTE ind,BYTE r,BYTE g,BYTE b);
79
void grx_getcolor(BYTE ind, BYTE *r, BYTE *g, BYTE *b);
80
void grx_setpalette(BYTE start, BYTE num, BYTE *pal);
81
void grx_getpalette(BYTE start, BYTE num, BYTE *pal);
82
 
83
int grx_open(WORD x, WORD y, BYTE depth);
84
 
85
void grx_clear(DWORD color);
80 pj 86
 
87
__END_DECLS
2 pj 88
#endif