X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=6e15da0f91fc1ad92b0c1f2862e08a4594690a16;hb=801496a591772aabee79893d09972d9bc0e50206;hp=743aaae1acef6096eda4dfdb24293bc4b6a47016;hpb=d5d595db551150511bacf91e0037908020bcf394;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 743aaae..6e15da0 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -99,6 +99,16 @@ typedef struct _GRADIENT RGBA rgba[8]; } GRADIENT; +typedef struct _FILTER +{ + U8 type; +} FILTER; +typedef struct _FILTERLIST +{ + int num; + FILTER*filter; +} FILTERLIST; + typedef struct _TAG // NEVER access a Tag-Struct directly ! { U16 id; U8 * data; @@ -300,8 +310,18 @@ SRECT swf_TurnRect(SRECT r, MATRIX* m); #define ST_VIDEOFRAME 61 #define ST_DEFINEFONTINFO2 62 #define ST_MX4 63 /*(?) */ +#define ST_ENABLEDEBUGGER2 64 /* version 8 */ #define ST_SCRIPTLIMITS 65 /* version 7- u16 maxrecursedepth, u16 scripttimeoutseconds */ #define ST_SETTABINDEX 66 /* version 7- u16 depth(!), u16 tab order value */ +#define ST_FILEATTRIBUTES 69 /* version 8 (required)- */ +#define ST_PLACEOBJECT3 70 /* version 8 */ +#define ST_IMPORTASSETS2 71 /* version 8 */ +#define ST_DEFINEFONTALIGNZONES 73 /* version 8 */ +#define ST_CSMTEXTSETTINGS 74 /* version 8 */ +#define ST_DEFINEFONT3 75 /* version 8 */ +#define ST_METADATA 77 /* version 8 */ +#define ST_DEFINESCALINGGRID 78 /* version 8 */ +#define ST_DEFINESHAPE4 83 /* version 8 */ /* custom tags- only valid for swftools */ #define ST_REFLEX 777 /* to identify generator software */ @@ -878,8 +898,11 @@ void action_fixjump(ActionMarker m1, ActionMarker m2); // The following 3 routines only use placeobject2: +extern char*blendModeNames[]; + int swf_ObjectPlace(TAG * t,U16 id,U16 depth,MATRIX * m,CXFORM * cx,U8 * name); int swf_ObjectPlaceClip(TAG * t,U16 id,U16 depth,MATRIX * m,CXFORM * cx,U8 * name, U16 clipaction); +int swf_ObjectPlaceBlend(TAG * t,U16 id,U16 depth,MATRIX * m,CXFORM * cx,U8 * name, U8 blendmode); int swf_ObjectMove(TAG * t,U16 depth,MATRIX * m,CXFORM * cx); typedef struct _SWFPLACEOBJECT { @@ -892,6 +915,8 @@ typedef struct _SWFPLACEOBJECT { U8*name; U16 clipdepth; ActionTAG* actions; + U8 blendmode; + FILTERLIST*filters; } SWFPLACEOBJECT; void swf_SetPlaceObject(TAG * t,SWFPLACEOBJECT* obj);