Mercurial > MadButterfly
comparison include/mb_graph_engine_openvg.h @ 630:bd18951b51d5 openvg
Add initial code for graphic engines
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 19 Jul 2010 15:44:49 +0800 |
parents | 39bd74da7f92 |
children | e224f496e6b8 |
comparison
equal
deleted
inserted
replaced
629:608f58b9b84d | 630:bd18951b51d5 |
---|---|
242 extern mbe_t *mbe_create(mbe_surface_t *surface); | 242 extern mbe_t *mbe_create(mbe_surface_t *surface); |
243 extern void mbe_destroy(mbe_t *canvas); | 243 extern void mbe_destroy(mbe_t *canvas); |
244 extern void mbe_paint_with_alpha(mbe_t *canvas, co_comp_t alpha); | 244 extern void mbe_paint_with_alpha(mbe_t *canvas, co_comp_t alpha); |
245 extern void mbe_paint(mbe_t *canvas); | 245 extern void mbe_paint(mbe_t *canvas); |
246 extern void mbe_clear(mbe_t *canvas); | 246 extern void mbe_clear(mbe_t *canvas); |
247 extern void mbe_init(); | |
247 | 248 |
248 static void | 249 static void |
249 mbe_stroke(mbe_t *canvas) { | 250 mbe_stroke(mbe_t *canvas) { |
250 _MK_CURRENT_CTX(canvas); | 251 _MK_CURRENT_CTX(canvas); |
251 _MK_CURRENT_PAINT(canvas); | 252 _MK_CURRENT_PAINT(canvas); |
271 static void | 272 static void |
272 mbe_fill(mbe_t *canvas) { | 273 mbe_fill(mbe_t *canvas) { |
273 mbe_fill_preserve(canvas); | 274 mbe_fill_preserve(canvas); |
274 vgClearPath(canvas->path, VG_PATH_CAPABILITY_ALL); | 275 vgClearPath(canvas->path, VG_PATH_CAPABILITY_ALL); |
275 } | 276 } |
276 | |
277 /* @} */ | 277 /* @} */ |
278 | 278 |
279 #endif /* __MB_GE_OPENVG_H_ */ | 279 #endif /* __MB_GE_OPENVG_H_ */ |