-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswf_serialise.h
37 lines (24 loc) · 1.95 KB
/
swf_serialise.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* Add-to-movie API */
extern void swf_add_matrix (swf_movie * movie, int * error, swf_matrix * mym);
extern void swf_add_end(swf_movie * movie, int * error);
extern void swf_add_showframe(swf_movie * movie, int * error);
extern void swf_add_setbackgroundcolour(swf_movie * movie, int * error, SWF_U8 red, SWF_U8 green, SWF_U8 blue, SWF_U8 alpha);
void swf_add_setbgcol(swf_movie * movie, int * error, swf_colour * bgcol);
extern void swf_add_protect(swf_movie * movie, int * error);
extern void swf_add_placeobject (swf_movie * movie, int * error, swf_matrix * mym, SWF_U16 char_id, SWF_U16 depth);
extern void swf_add_placeobject2 (swf_movie * movie, int * error, swf_matrix * mym, SWF_U16 char_id, SWF_U16 depth, swf_cxform * mycx, char * myname);
extern void swf_add_removeobject (swf_movie * movie, int * error, SWF_U16 char_id, SWF_U16 depth);
extern void swf_add_removeobject2 (swf_movie * movie, int * error, SWF_U16 depth);
// FIXME: Test API
extern void swf_add_definebutton (swf_movie * movie, int * error, SWF_U16 button_id, SWF_U16 char_id);
extern void swf_add_doaction (swf_movie * movie, int * error, SWF_U8 saction);
/* Serialisation API */
extern void swf_serialise_rect(swf_movie * p, int * error, swf_rect * rect);
extern void swf_buffer_rect(swf_buffer * p, int * error, swf_rect * rect);
extern void swf_serialise_matrix (swf_buffer * buffer, int * error, swf_matrix * mym);
extern void swf_serialise_cxform(swf_buffer * buffer, int * error, swf_cxform * mycx);
extern void swf_serialise_cxform_force_alpha (swf_buffer * buffer, int * error, swf_cxform * mycx);
extern void swf_serialise_definebutton (swf_buffer * buffer, int * error, swf_definebutton * button);
extern void swf_serialise_defineshape (swf_buffer * buffer, int * error, swf_defineshape * shape);
extern void swf_buffer_shapestyle(swf_buffer * buffer, int * error, swf_shapestyle * s);
extern void swf_buffer_shaperecord(swf_buffer * buffer, int * error, swf_shaperecord * s, swf_shapestyle * st);