Subversion Repositories shark

Rev

Rev 110 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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