diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/modules/engines/gl_cocoa/evas_engine.h | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to '')
-rw-r--r-- | libraries/evas/src/modules/engines/gl_cocoa/evas_engine.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/gl_cocoa/evas_engine.h b/libraries/evas/src/modules/engines/gl_cocoa/evas_engine.h new file mode 100644 index 0000000..a066d3e --- /dev/null +++ b/libraries/evas/src/modules/engines/gl_cocoa/evas_engine.h | |||
@@ -0,0 +1,69 @@ | |||
1 | #ifndef __EVAS_ENGINE_H__ | ||
2 | #define __EVAS_ENGINE_H__ | ||
3 | |||
4 | #ifdef HAVE_CONFIG_H | ||
5 | # include <config.h> | ||
6 | #endif | ||
7 | |||
8 | #include <OpenGL/gl.h> | ||
9 | |||
10 | #include "evas_gl_common.h" | ||
11 | #include "Evas_Engine_GL_Cocoa.h" | ||
12 | |||
13 | extern int _evas_engine_gl_cocoa_log_dom; | ||
14 | |||
15 | #ifdef ERR | ||
16 | # undef ERR | ||
17 | #endif | ||
18 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
19 | |||
20 | #ifdef DBG | ||
21 | # undef DBG | ||
22 | #endif | ||
23 | #define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
24 | |||
25 | #ifdef INF | ||
26 | # undef INF | ||
27 | #endif | ||
28 | #define INF(...) EINA_LOG_DOM_INFO(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
29 | |||
30 | #ifdef WRN | ||
31 | # undef WRN | ||
32 | #endif | ||
33 | #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
34 | |||
35 | #ifdef CRIT | ||
36 | # undef CRIT | ||
37 | #endif | ||
38 | #define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_gl_cocoa_log_dom, __VA_ARGS__) | ||
39 | |||
40 | typedef struct _Evas_GL_Cocoa_Window Evas_GL_Cocoa_Window; | ||
41 | |||
42 | struct _Evas_GL_Cocoa_Window | ||
43 | { | ||
44 | void* window; | ||
45 | void* view; | ||
46 | int width; | ||
47 | int height; | ||
48 | int depth; | ||
49 | Evas_Engine_GL_Context *gl_context; | ||
50 | struct { | ||
51 | int x1; | ||
52 | int y1; | ||
53 | int x2; | ||
54 | int y2; | ||
55 | int redraw : 1; | ||
56 | int drew : 1; | ||
57 | } draw; | ||
58 | }; | ||
59 | |||
60 | Evas_GL_Cocoa_Window *eng_window_new(void *window, | ||
61 | int width, | ||
62 | int height); | ||
63 | void eng_window_free(Evas_GL_Cocoa_Window *gw); | ||
64 | void eng_window_use(Evas_GL_Cocoa_Window *gw); | ||
65 | void eng_window_swap_buffers(Evas_GL_Cocoa_Window *gw); | ||
66 | void eng_window_vsync_set(int on); | ||
67 | void ng_window_resize(Evas_GL_Cocoa_Window *gw, int width, int height); | ||
68 | |||
69 | #endif /* __EVAS_ENGINE_H__ */ | ||