diff options
author | Carsten Haitzler <raster@rasterman.com> | 2007-04-11 11:58:32 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2007-04-11 11:58:32 +0000 |
commit | 502d62417d729d80f14d5d6cb5fd44b293e73fad (patch) | |
tree | a069a16762c79cbbb488e017560c3b3c0c48c6e8 /src/bin/main.h |
add expedite to cvs! finally! :) it's in decent shape.
SVN revision: 29466
Diffstat (limited to 'src/bin/main.h')
-rw-r--r-- | src/bin/main.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/bin/main.h b/src/bin/main.h new file mode 100644 index 0000000..3a59cc6 --- /dev/null +++ b/src/bin/main.h | |||
@@ -0,0 +1,49 @@ | |||
1 | #ifndef MAIN_H | ||
2 | #define MAIN_H | ||
3 | |||
4 | #include <stdio.h> | ||
5 | #include <stdlib.h> | ||
6 | #include <string.h> | ||
7 | #include <math.h> | ||
8 | #include <sys/time.h> | ||
9 | #include <time.h> | ||
10 | |||
11 | #include <Evas.h> | ||
12 | #include "config.h" | ||
13 | #include "engine_software_x11.h" | ||
14 | #include "engine_gl_x11.h" | ||
15 | #include "engine_xrender_x11.h" | ||
16 | #include "ui.h" | ||
17 | #include "about.h" | ||
18 | |||
19 | #define OBNUM 128 | ||
20 | |||
21 | extern Evas *evas; | ||
22 | extern int win_w, win_h; | ||
23 | |||
24 | void srnd(void); | ||
25 | unsigned int rnd(void); | ||
26 | double get_time(void); | ||
27 | void engine_loop(void); | ||
28 | int engine_abort(void); | ||
29 | |||
30 | #define KEY_STD \ | ||
31 | if ((!strcmp(key, "Escape")) || (!strcmp(key, "q")) || (!strcmp(key, "Q")) || (!strcmp(key, "Return"))) \ | ||
32 | { \ | ||
33 | _cleanup(); \ | ||
34 | ui_menu(); \ | ||
35 | } | ||
36 | |||
37 | #define FPS_STD(x) \ | ||
38 | if ((f >= 32) && (!done)) \ | ||
39 | { \ | ||
40 | double fps; \ | ||
41 | fps = (double)f / t; \ | ||
42 | ui_fps(fps); \ | ||
43 | printf("%4.2f , %s\n", fps, x); \ | ||
44 | done = 1; \ | ||
45 | } | ||
46 | |||
47 | #define SLOW 5.0 | ||
48 | |||
49 | #endif | ||