Mercurial > MadButterfly
annotate include/mb_graph_engine.h @ 581:953acea89f76 openvg
dummy implementation of graphic engine
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 19 Jun 2010 11:43:53 +0800 |
parents | e2c9117b1e12 |
children | 7b4e80ab671a |
rev | line source |
---|---|
579
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
1 /*! \page create_graph_engine Create a Graphic Engine. |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
2 * |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
3 * To create a graphic engine, you need to declare and define types |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
4 * and functions that had been declared in |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
5 * include/mb_graph_engine_cairo.h in a separated header an c file. |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
6 * Likes what mb_graph_engine_skia.h does. |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
7 * |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
8 * You should also add options in configure.ac to enable the graphic |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
9 * engine. You also need to add lines in include/mb_config.h.in and |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
10 * include/mb_graph_engine.h to include correct header for the graphic |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
11 * engine enabled by the user. |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
12 */ |
448
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
13 #ifndef __MBE_H_ |
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
14 #define __MBE_H_ |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
15 #include <mb_config.h> |
450
a417fd980228
Replace cairo_format_t with mb_img_fmt_t.
Thinker K.F. Li <thinker@branda.to>
parents:
449
diff
changeset
|
16 |
466
cd6f57b9b104
Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents:
465
diff
changeset
|
17 #ifdef CAIRO_GRAPH_ENGINE |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
18 #include <mb_graph_engine_cairo.h> |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
19 #endif |
450
a417fd980228
Replace cairo_format_t with mb_img_fmt_t.
Thinker K.F. Li <thinker@branda.to>
parents:
449
diff
changeset
|
20 |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
466
diff
changeset
|
21 #ifdef SKIA_GRAPH_ENGINE |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
22 #include <mb_graph_engine_skia.h> |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
23 #endif |
448
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
24 |
579
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
25 #ifdef OPENVG_GRAPH_ENGINE |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
26 #include <mb_graph_engine_openvg.h> |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
27 #endif |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
28 |
448
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
29 #endif /* __MBE_H_ */ |