-
Notifications
You must be signed in to change notification settings - Fork 12
/
acidwarp.h
67 lines (59 loc) · 1.77 KB
/
acidwarp.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* ACIDWARP.H */
#define VERSION "Acid Warp Version 4.10 (C)Copyright 1992, 1993 by Noah Spurrier and Mark Bilk\nSDL port by Boris Gjenero based on Linux port by Steven Wills"
#define DIRECTN_CHANGE_PERIOD_IN_TICKS 256
#ifdef EMSCRIPTEN
#define ENABLE_WORKER
#else /* !EMSCRIPTEN */
/* Full screen doesn't work with Emscripten. Use F11 instead. */
#define HAVE_FULLSCREEN
#define ENABLE_THREADS
#endif
/* Palette types */
#define RGBW_PAL 0
#define W_PAL 1
#define W_HALF_PAL 2
#define PASTEL_PAL 3
#define RGBW_LIGHTNING_PAL 4
#define W_LIGHTNING_PAL 5
#define W_HALF_LIGHTNING_PAL 6
#define PASTEL_LIGHTNING_PAL 7
#define RED 0
#define GREEN 1
#define BLUE 2
#define NUM_PALETTE_TYPES 8
#define NUM_IMAGE_FUNCTIONS 40
#define NOAHS_FACE 0
enum acidwarp_command {
CMD_PAUSE = 1,
CMD_SKIP,
CMD_QUIT,
CMD_NEWPAL,
CMD_LOCK,
CMD_PAL_FASTER,
CMD_PAL_SLOWER,
CMD_RESIZE
};
void handleinput(enum acidwarp_command cmd);
void generate_image_float(int imageFuncNum, UCHAR *buf_graf,
int xcenter, int ycenter,
int width, int height,
int colors, int pitch, int normalize);
void generate_image(int imageFuncNum, UCHAR *buf_graf,
int xcenter, int ycenter,
int width, int height,
int colors, int pitch);
void fatalSDLError(const char *msg);
void quit(int retcode);
void makeShuffledList(int *list, int listSize);
#ifdef ENABLE_WORKER
void startloop(void);
#endif
#define DRAW_LOGO 1
#define DRAW_FLOAT 2
#define DRAW_SCALED 4
void draw_init(int flags);
void draw_same(void);
void draw_next(void);
void draw_abort(void);
void draw_quit(void);
extern int abort_draw;