Mercurial > MadButterfly
comparison include/mb_graph_engine_openvg.h @ 588:e9923024f65e openvg
Implement mbe_scissoring() for OpenVG
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 30 Jun 2010 17:45:30 +0800 |
parents | b42d69ab8857 |
children | d733e198bb25 |
comparison
equal
deleted
inserted
replaced
587:1302b336add6 | 588:e9923024f65e |
---|---|
66 #define mbe_stroke(canvas) | 66 #define mbe_stroke(canvas) |
67 #define mbe_clear(canvas) | 67 #define mbe_clear(canvas) |
68 #define mbe_paint(canvas) | 68 #define mbe_paint(canvas) |
69 #define mbe_save(canvas) | 69 #define mbe_save(canvas) |
70 #define mbe_fill(canvas) | 70 #define mbe_fill(canvas) |
71 #define mbe_scissoring(canvas, n_areas, areas) | |
72 #define mbe_arc(canvas, x, y, radius, angle_start, angle_stop) | 71 #define mbe_arc(canvas, x, y, radius, angle_start, angle_stop) |
73 | 72 |
74 typedef struct _mbe_text_extents_t mbe_text_extents_t; | 73 typedef struct _mbe_text_extents_t mbe_text_extents_t; |
75 typedef int mbe_scaled_font_t; | 74 typedef int mbe_scaled_font_t; |
76 typedef int mbe_font_face_t; | 75 typedef int mbe_font_face_t; |
115 (vgmtx)[8] = 1; \ | 114 (vgmtx)[8] = 1; \ |
116 } while(0) | 115 } while(0) |
117 | 116 |
118 extern EGLNativeDisplayType _ge_openvg_disp_id; | 117 extern EGLNativeDisplayType _ge_openvg_disp_id; |
119 extern mbe_t *_ge_openvg_current_canvas; | 118 extern mbe_t *_ge_openvg_current_canvas; |
119 | |
120 extern void mbe_scissoring(mbe_t *canvas, int n_areas, area_t **areas); | |
121 | |
120 | 122 |
121 #define _VG_DISPLAY() eglGetDisplay(_ge_openvg_disp_id) | 123 #define _VG_DISPLAY() eglGetDisplay(_ge_openvg_disp_id) |
122 | 124 |
123 /* \brief Make the context of a canvas to be current context. | 125 /* \brief Make the context of a canvas to be current context. |
124 */ | 126 */ |