Subversion Repositories shark

Rev

Details | 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>
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
 ------------
23
 CVS :        $Id: glib.h,v 1.1 2003-03-24 13:23:19 giacomo Exp $
24
 
25
 File:        $File$
26
 Revision:    $Revision: 1.1 $
27
 Last update: $Date: 2003-03-24 13:23:19 $
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 "ll/sys/cdefs.h"
56
 
57
__BEGIN_DECLS
58
 
59
int grx_setbuffer(BYTE *vbuf,WORD w, WORD h);
60
 
61
void grx_plot(WORD x, WORD y, DWORD color);
62
DWORD grx_getpixel(WORD x, WORD y);
63
//void grx_getimage(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf);
64
//void grx_putimage(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf);
65
void grx_box(WORD x1, WORD y1, WORD x2, WORD y2, DWORD color);
66
void grx_rect(WORD x1, WORD y1, WORD x2, WORD y2, DWORD color);
67
void grx_line(WORD x1, WORD y1, WORD x2, WORD y2, DWORD color);
68
void grx_text(char *text, WORD x, WORD y, DWORD fg, DWORD bg);
69
void grx_circle(WORD x, WORD y, WORD r, DWORD col);
70
void grx_disc(WORD x, WORD y, WORD r, DWORD col);
71
void grx_clear(DWORD color);
72
__END_DECLS
73
#endif