Better check for 64-bit.
[AROS-Contrib.git] / Demo / kdp / kdp.h
blobb95824d2a99133f7be80773fc490c78443c545c5
1 /* KDP v0.7 by wrecK/KnP YhdZ/KnP
3 hmmm......
4 */
6 #ifndef KDP_H
7 #define KDP_H
10 #ifndef PI
11 #define PI 3.1415926535897932384626433832795
12 #endif
14 #include <exec/types.h>
16 #include <stdio.h>
18 typedef struct
20 UBYTE *vmem;
21 } KDPscreen;
23 typedef struct
25 int xspeed,yspeed;
26 int button;
27 BYTE x,y;
28 } KDPmouse;
31 int KDPopen(KDPscreen *screen);
32 void KDPclose(KDPscreen *screen);
33 void KDPsetColor(UBYTE num,UBYTE r,UBYTE g,UBYTE b);
34 void KDPsetPal(UBYTE *pal);
35 void KDPwaitVr();
36 void KDPshow(UBYTE *vmem);
37 void KDPgetMouse(KDPmouse *mouse);
38 void *KDPloadFile(char *filename);
39 WORD KDPgetMword(UBYTE *wrd);
40 LONG KDPgetMlong(UBYTE *lng);
41 WORD KDPgetIword(UBYTE *wrd);
42 LONG KDPgetIlong(UBYTE *lng);
43 float KDPgetMfloat(UBYTE *b);
44 float KDPgetIfload(UBYTE *b);
45 int KDPwriteMword(WORD word,FILE *file);
46 int KDPwriteMlong(LONG llng,FILE *file);
47 int KDPwriteIword(WORD word,FILE *file);
48 int KDPwriteIlong(LONG llng,FILE *file);
52 #endif /*KDP_H */