4 |
|
*/ |
5 |
|
#ifndef _RAD_DRIVER_H_ |
6 |
|
#define _RAD_DRIVER_H_ |
7 |
+ |
|
8 |
+ |
#include "color.h" |
9 |
+ |
|
10 |
|
#ifdef __cplusplus |
11 |
|
extern "C" { |
12 |
|
#endif |
13 |
|
|
14 |
|
struct driver { /* driver functions */ |
15 |
< |
void (*close)(); /* close device */ |
16 |
< |
void (*clear)(); /* clear device */ |
17 |
< |
void (*paintr)(); /* paint rectangle */ |
18 |
< |
int (*getcur)(); /* get cursor position */ |
19 |
< |
void (*comout)(); /* command line output */ |
15 |
> |
void (*close)(void); /* close device */ |
16 |
> |
void (*clear)(int, int); /* clear device */ |
17 |
> |
void (*paintr)(COLOR col, int xmin, int ymin, int xmax, int ymax); /* paint rectangle */ |
18 |
> |
int (*getcur)(int*,int*); /* get cursor position */ |
19 |
> |
void (*comout)(char*); /* command line output */ |
20 |
|
void (*comin)(); /* command line input */ |
21 |
|
void (*flush)(); /* flush output */ |
22 |
|
double pixaspect; /* pixel aspect ratio */ |