15 # include <sys/time.h>
27 #if HAVE_EVAS_SOFTWARE_XLIB
28 #include "engine_software_xlib.h"
30 #if HAVE_EVAS_XRENDER_X11
31 #include "engine_xrender_x11.h"
33 #if HAVE_EVAS_OPENGL_X11
34 #include "engine_gl_x11.h"
36 #if HAVE_EVAS_SOFTWARE_XCB
37 #include "engine_software_xcb.h"
39 #if HAVE_EVAS_XRENDER_XCB
40 #include "engine_xrender_xcb.h"
42 #if HAVE_EVAS_SOFTWARE_GDI
43 #include "engine_software_gdi.h"
45 #if HAVE_EVAS_SOFTWARE_DDRAW
46 #include "engine_software_ddraw.h"
48 #if HAVE_EVAS_DIRECT3D
49 #include "engine_direct3d.h"
51 #if HAVE_EVAS_OPENGL_GLEW
52 #include "engine_gl_glew.h"
54 #if HAVE_EVAS_SOFTWARE_SDL
55 #include "engine_software_sdl.h"
57 #if HAVE_EVAS_OPENGL_SDL
58 #include "engine_gl_sdl.h"
61 #include "engine_fb.h"
63 #if HAVE_EVAS_DIRECTFB
64 #include "engine_directfb.h"
67 #include "engine_quartz.h"
69 #if HAVE_EVAS_SOFTWARE_16_X11
70 #include "engine_software_16_x11.h"
72 #if HAVE_EVAS_SOFTWARE_16_DDRAW
73 #include "engine_software_16_ddraw.h"
75 #if HAVE_EVAS_SOFTWARE_16_WINCE
76 #include "engine_software_16_wince.h"
87 #define EVAS_FRAME_QUEUING // for test
93 extern int win_w, win_h;
95 extern int fullscreen;
97 typedef struct _Expedite_Resolution Expedite_Resolution;
98 typedef struct _Expedite_Engine Expedite_Engine;
100 struct _Expedite_Resolution
107 struct _Expedite_Engine
110 Eina_Bool (*init)(const char *engine, int width, int height);
112 void (*shutdown)(void);
116 unsigned int rnd(void);
117 double get_time(void);
118 const char *build_path(const char *filename);
119 void engine_loop(void);
120 int engine_abort(void);
127 if ((!strcmp(key, "Escape")) || (!strcmp(key, "q")) || (!strcmp(key, "Q")) || (!strcmp(key, "Return"))) \
134 if ((f >= loops) && (!done)) \
137 fps = (double)f / t; \
139 printf("%4.2f , %s\n", fps, x); \