Mercurial > MadButterfly
annotate include/mb_graph_engine.h @ 1375:37dc1ce76bba
Add example files for the coord_hide issue
author | wycc |
---|---|
date | Fri, 11 Mar 2011 14:05:09 +0800 |
parents | 7b4e80ab671a |
children |
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 */ |
822
586e50f82c1f
Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
472
diff
changeset
|
13 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- |
586e50f82c1f
Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
472
diff
changeset
|
14 // vim: sw=4:ts=8:sts=4 |
448
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
15 #ifndef __MBE_H_ |
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
16 #define __MBE_H_ |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
17 #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
|
18 |
466
cd6f57b9b104
Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents:
465
diff
changeset
|
19 #ifdef CAIRO_GRAPH_ENGINE |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
20 #include <mb_graph_engine_cairo.h> |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
21 #endif |
450
a417fd980228
Replace cairo_format_t with mb_img_fmt_t.
Thinker K.F. Li <thinker@branda.to>
parents:
449
diff
changeset
|
22 |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
466
diff
changeset
|
23 #ifdef SKIA_GRAPH_ENGINE |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
24 #include <mb_graph_engine_skia.h> |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
25 #endif |
448
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
26 |
579
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
27 #ifdef OPENVG_GRAPH_ENGINE |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
28 #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
|
29 #endif |
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
30 |
448
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
31 #endif /* __MBE_H_ */ |