grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / demos / 2View / 2View.h
blob10e24db001a5736d5e8ea94807d21fa78d8a8f77
2 #include <libraries/iffparse.h>
4 /* Header file for 2View.c */
6 enum ScreenWidths {low,high,superhigh,unknown_w};
7 typedef enum ScreenWidths ScreenWidths;
9 enum ScreenHeights {nolace,lace,prodlace,unknown_h};
10 typedef enum ScreenHeights ScreenHeights;
12 enum ScreenTypes {ham,ehb,unknown_t};
13 typedef enum ScreenTypes ScreenTypes;
15 enum ButtonTypes {none=0,select,menu};
16 typedef enum ButtonTypes ButtonTypes;
18 typedef struct CAMG
20 ULONG viewmodes;
21 } CAMG;
23 typedef struct CRNG
25 WORD pad1;
26 WORD rate;
27 WORD active;
28 UBYTE low,high;
29 } CRNG;
31 typedef struct DRNG
33 UBYTE min;
34 UBYTE max;
35 WORD rate;
36 WORD flags;
37 UBYTE ntrue;
38 UBYTE nregs;
39 } DRNG;
41 typedef struct DIndex
43 UBYTE cell;
44 UBYTE index;
45 } DIndex;
47 #define NORMAL_MODE 0
48 #define SHAM 1
49 #define MACROPAINT 2
52 #define MIN(x,y) ((x)<(y)) ? (x) : (y)
56 /* Prototypes for functions defined in 2View.c */
57 int main (int argc, char ** argv);
58 void ReadAndDisplay(char *filename,struct IFFHandle *iff);
59 void setScreenColors(struct Screen *scr, UBYTE *colorMap, UBYTE depth,
60 UWORD *destColorMap,UBYTE *colors);
61 void ReadBodyIntoBitmap(struct BitMap *bm,
62 UBYTE *buffer,
63 ULONG bufferSize);
64 void GetALine(BYTE *src,
65 UBYTE *dest,
66 ULONG *pos,
67 UWORD width,
68 unsigned char Compression);
70 void getBMHD(UBYTE *bmhd);
71 void ParseArgs(IPTR *args);
72 ButtonTypes checkButton(void);
73 void printError(char *fmt,...);
74 void cleanup();
75 BOOL dumpRastPort(struct RastPort *rp,struct ViewPort *vp);
76 void cycleColors(UBYTE *cycleTable,UWORD *colorTable,UBYTE length,UBYTE numColors);
77 UBYTE interpretCRNG(UBYTE *cycleTable,CRNG *crng,UBYTE *rate);
78 UBYTE interpretDRNG(UBYTE *cycleTable,DRNG *drng,UBYTE *rate);
79 void toggleCycling(void);
81 #if 0
82 void setupSHAM(struct Screen *scr,UWORD *sham);
83 void setupDynHires(struct Screen *scr,UWORD *colorBuf);
84 #endif