Mercurial > MadButterfly
comparison include/mb_graph_engine_openvg.h @ 1095:bced6fe39856
Fix position (collision) detection for OpenVG.
We still have no way to check if a point is in the fill area of a
shape for OpenVG. So, we only use current area (rectangle) of a shape
to determine it. So, mbe_in_fill() of OpenVG always return true.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sat, 04 Dec 2010 13:48:43 +0800 |
parents | e9d8194fcff0 |
children | 77596f3d8d0c |
comparison
equal
deleted
inserted
replaced
1094:613a7caa9bd6 | 1095:bced6fe39856 |
---|---|
72 do { \ | 72 do { \ |
73 VGfloat _vg_data[2] = {x, y}; \ | 73 VGfloat _vg_data[2] = {x, y}; \ |
74 char _vg_cmd = VG_LINE_TO_ABS; \ | 74 char _vg_cmd = VG_LINE_TO_ABS; \ |
75 vgAppendPathData((canvas)->path, 1, &_vg_cmd, _vg_data); \ | 75 vgAppendPathData((canvas)->path, 1, &_vg_cmd, _vg_data); \ |
76 } while(0) | 76 } while(0) |
77 #define mbe_in_fill(canvas, x, y) (0) | 77 #define mbe_in_fill(canvas, x, y) (1) |
78 /* TODO: change prototype of mbe_arc() to remove mbe_save() and | 78 /* TODO: change prototype of mbe_arc() to remove mbe_save() and |
79 * mbe_restore(). | 79 * mbe_restore(). |
80 */ | 80 */ |
81 #define mbe_save(canvas) | 81 #define mbe_save(canvas) |
82 #define mbe_restore(canvas) | 82 #define mbe_restore(canvas) |