From 801496a591772aabee79893d09972d9bc0e50206 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 17 Jan 2007 13:34:00 +0000 Subject: [PATCH] added blend modes + filter lists --- lib/rfxswf.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/rfxswf.h b/lib/rfxswf.h index ae27f80..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; @@ -888,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 { @@ -902,6 +915,8 @@ typedef struct _SWFPLACEOBJECT { U8*name; U16 clipdepth; ActionTAG* actions; + U8 blendmode; + FILTERLIST*filters; } SWFPLACEOBJECT; void swf_SetPlaceObject(TAG * t,SWFPLACEOBJECT* obj); -- 1.7.10.4