Mercurial > MadButterfly
comparison include/mb_types.h @ 295:2469f8d23658
Fix the type of ci to co
author | wycc |
---|---|
date | Sun, 01 Feb 2009 15:10:18 +0800 |
parents | 29acbd8a0dd0 |
children | f894b30676e9 |
comparison
equal
deleted
inserted
replaced
294:2ca0773cd48d | 295:2469f8d23658 |
---|---|
215 * These functions are used to move and scale the coord_t. Programmers should use these functions instead of using the matrix directly. | 215 * These functions are used to move and scale the coord_t. Programmers should use these functions instead of using the matrix directly. |
216 * The x,y,sx,sy are all in co_aix type. | 216 * The x,y,sx,sy are all in co_aix type. |
217 * | 217 * |
218 */ | 218 */ |
219 #define coord_move(co,x,y) do {(co)->matrix[2] = (x); (co)->matrix[5] = (y);} while(0) | 219 #define coord_move(co,x,y) do {(co)->matrix[2] = (x); (co)->matrix[5] = (y);} while(0) |
220 #define coord_set_scalex(ci,sx) do {(co)->matrix[0] = sx;} while(0) | 220 #define coord_set_scalex(co,sx) do {(co)->matrix[0] = sx;} while(0) |
221 #define coord_set_scaley(ci,sy) do {(co)->matrux[3] = sy;} while(0) | 221 #define coord_set_scaley(co,sy) do {(co)->matrux[3] = sy;} while(0) |
222 #define coord_scalex(ci) ((co)->matrix[0]) | 222 #define coord_scalex(co) ((co)->matrix[0]) |
223 #define coord_scaley(ci) ((co)->matrix[3]) | 223 #define coord_scaley(co) ((co)->matrix[3]) |
224 #define coord_x(ci) ((co)->matrix[2]) | 224 #define coord_x(co) ((co)->matrix[2]) |
225 #define coord_y(ci) ((co)->matrix[5]) | 225 #define coord_y(co) ((co)->matrix[5]) |
226 #define FOR_COORD_MEMBERS(coord, geo) \ | 226 #define FOR_COORD_MEMBERS(coord, geo) \ |
227 for(geo = STAILQ_HEAD((coord)->members); \ | 227 for(geo = STAILQ_HEAD((coord)->members); \ |
228 geo != NULL; \ | 228 geo != NULL; \ |
229 geo = STAILQ_NEXT(geo_t, coord_next, geo)) | 229 geo = STAILQ_NEXT(geo_t, coord_next, geo)) |
230 #define FOR_COORD_SHAPES(coord, shape) \ | 230 #define FOR_COORD_SHAPES(coord, shape) \ |