X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=6e15da0f91fc1ad92b0c1f2862e08a4594690a16;hb=801496a591772aabee79893d09972d9bc0e50206;hp=da064909c23f6e6940cafb79ff839421b796bd61;hpb=965fb2d8ab551a8544f85bf1ab7441bcd0c7c2c5;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index da06490..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; @@ -309,6 +319,7 @@ SRECT swf_TurnRect(SRECT r, MATRIX* m); #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 */ @@ -887,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 { @@ -901,6 +915,8 @@ typedef struct _SWFPLACEOBJECT { U8*name; U16 clipdepth; ActionTAG* actions; + U8 blendmode; + FILTERLIST*filters; } SWFPLACEOBJECT; void swf_SetPlaceObject(TAG * t,SWFPLACEOBJECT* obj);