diff options
Diffstat (limited to 'libraries/evas/src/modules/engines/software_16_sdl/evas_engine.h')
-rw-r--r-- | libraries/evas/src/modules/engines/software_16_sdl/evas_engine.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/software_16_sdl/evas_engine.h b/libraries/evas/src/modules/engines/software_16_sdl/evas_engine.h new file mode 100644 index 0000000..a1b0ee0 --- /dev/null +++ b/libraries/evas/src/modules/engines/software_16_sdl/evas_engine.h | |||
@@ -0,0 +1,79 @@ | |||
1 | #ifndef EVAS_ENGINE_SDL_16_H | ||
2 | #define EVAS_ENGINE_SDL_16_H | ||
3 | |||
4 | #include "evas_common.h" | ||
5 | #include "evas_private.h" | ||
6 | #include "evas_common_soft16.h" | ||
7 | #include "Evas_Engine_SDL_16.h" | ||
8 | extern int _evas_engine_soft16_sdl_log_dom ; | ||
9 | #ifdef ERR | ||
10 | # undef ERR | ||
11 | #endif | ||
12 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_soft16_sdl_log_dom, __VA_ARGS__) | ||
13 | |||
14 | #ifdef DBG | ||
15 | # undef DBG | ||
16 | #endif | ||
17 | #define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_soft16_sdl_log_dom, __VA_ARGS__) | ||
18 | |||
19 | #ifdef INF | ||
20 | # undef INF | ||
21 | #endif | ||
22 | #define INF(...) EINA_LOG_DOM_INFO(_evas_engine_soft16_sdl_log_dom, __VA_ARGS__) | ||
23 | |||
24 | #ifdef WRN | ||
25 | # undef WRN | ||
26 | #endif | ||
27 | #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_soft16_sdl_log_dom, __VA_ARGS__) | ||
28 | |||
29 | #ifdef CRIT | ||
30 | # undef CRIT | ||
31 | #endif | ||
32 | #define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_soft16_sdl_log_dom, __VA_ARGS__) | ||
33 | |||
34 | typedef struct _SDL_Engine_Image_Entry SDL_Engine_Image_Entry; | ||
35 | struct _SDL_Engine_Image_Entry | ||
36 | { | ||
37 | Engine_Image_Entry cache_entry; | ||
38 | |||
39 | SDL_Surface *surface; | ||
40 | |||
41 | struct | ||
42 | { | ||
43 | unsigned int engine_surface : 1; | ||
44 | } flags; | ||
45 | }; | ||
46 | |||
47 | |||
48 | typedef struct _Render_Engine Render_Engine; | ||
49 | struct _Render_Engine | ||
50 | { | ||
51 | SDL_Engine_Image_Entry *soft16_engine_image; | ||
52 | |||
53 | Evas_Cache_Engine_Image *cache; | ||
54 | |||
55 | Soft16_Image *tmp_out; | ||
56 | |||
57 | int w; | ||
58 | int h; | ||
59 | int rot; | ||
60 | |||
61 | Tilebuf *tb; | ||
62 | Tilebuf_Rect *rects; | ||
63 | Tilebuf_Rect *cur_rect; | ||
64 | |||
65 | SDL_Rect *update_rects; | ||
66 | int update_rects_count; | ||
67 | int update_rects_limit; | ||
68 | |||
69 | struct | ||
70 | { | ||
71 | unsigned int fullscreen : 1; | ||
72 | unsigned int noframe : 1; | ||
73 | unsigned int alpha : 1; | ||
74 | unsigned int hwsurface : 1; | ||
75 | unsigned int end : 1; | ||
76 | } flags; | ||
77 | }; | ||
78 | |||
79 | #endif | ||