comparison tools/mb_c_header.m4 @ 241:104d83378582

Add scene support in svg2code.py. - Add mb_sprite_t::goto_scene() - svg2code.py recoganize "scenes" tag in metadata of SVG file. - tranform scenes into SCENE() macro. - define SCENE macro in mb_c_*.m4
author Thinker K.F. Li <thinker@branda.to>
date Wed, 31 Dec 2008 02:08:40 +0800
parents 3fadd2f2742e
children 50d253d0fcba a90fd749af82
comparison
equal deleted inserted replaced
240:d347a577a232 241:104d83378582
39 define([COORD_TRANSLATE],) 39 define([COORD_TRANSLATE],)
40 define([COORD_MATRIX],) 40 define([COORD_MATRIX],)
41 define([SHAPE_TRANSLATE],) 41 define([SHAPE_TRANSLATE],)
42 define([SHAPE_MATRIX],) 42 define([SHAPE_MATRIX],)
43 define([ADD_SYMBOL],) 43 define([ADD_SYMBOL],)
44 define([SCENE])
44 45
45 define([MADBUTTERFLY],[dnl 46 define([MADBUTTERFLY],[dnl
46 [#ifndef __$1_H_ 47 [#ifndef __$1_H_
47 #define __$1_H_ 48 #define __$1_H_
48 49
49 typedef struct $1 $1_t; 50 typedef struct $1 $1_t;
50 51
51 struct $1 { 52 struct $1 {
52 mb_sprite_lsym_t lsym; 53 mb_sprite_lsym_t lsym;
53 redraw_man_t *rdman; 54 redraw_man_t *rdman;
55 const int *last_scene;
54 coord_t *root_coord;] 56 coord_t *root_coord;]
55 $2[]dnl 57 $2[]dnl
56 [}; 58 [};
57 59
58 extern $1_t *$1_new(redraw_man_t *rdman, coord_t *parent_coord); 60 extern $1_t *$1_new(redraw_man_t *rdman, coord_t *parent_coord);