-
Notifications
You must be signed in to change notification settings - Fork 0
/
grx.h
33 lines (30 loc) · 1.11 KB
/
grx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xaw/Simple.h>
extern Widget topLevel, game_widget;
extern XtAppContext app_context;
extern int game_mode;
extern Display *display;
extern int screen, depth;
extern GC gc;
extern XEvent Ev;
extern GC gc_table[16];
extern int current_gc;
#define TIMEOUT 120
void press_left(), press_right(), press_mid();
void release_left(), release_mid(), release_right();
void game_ready( XtPointer xp, XtIntervalId *id );
void mainloop( XtPointer xp, XtIntervalId *id );
void init( void );
void SetColor( int );
void polygon3( Window w, Point2 *p1, Point2 *p2, Point2 *p3, int c );
void polygon4( Window w, Point2 *p1, Point2 *p2, Point2 *p3, Point2 *p4, int c );
void polygon5( Window w, Point2 *p1, Point2 *p2, Point2 *p3, Point2 *p4, Point2 *p5, int c
);
void ClearEventInfo();
void GetEvent();
int isLeft(), isMid(), isRight();
Pixmap mag_to_pixmap( Display *d, Window w, int scr, int depth, GC gc, char *data, int *width_ret, int *height_ret );
Pixmap image_to_pixmap( unsigned char *data, int *width_ret, int *height_ret );