X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=db5a79e1ba20921d443e0d021dc28a6764e5f0dc;hb=2ad35e741fb2e9242e295fd241a97fe3809292f7;hp=b572f524aa373bd6c818215720a3c76ed0a1a414;hpb=939dce305129b17c7207d5fa606e7e5ebd8bad60;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index b572f52..db5a79e 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -16,6 +16,8 @@ #include #include #include +#include +#include #include "../config.h" #define DEBUG_RFXSWF @@ -70,18 +72,20 @@ typedef struct _CXFORM typedef struct _TAG // NEVER access a Tag-Struct directly ! { U16 id; - U32 len; U8 * data; + U32 memsize; // to minimize realloc() calls + + U32 len; // for Set-Access + U32 pos; // for Get-Access - int frame; + int frame; // not really up-to-date struct _TAG * next; struct _TAG * prev; - U32 memsize; // to minimize realloc() calls - U32 pos; // for Get/Set-Access - U8 bitmask; // for Bit-Manipulating Functions [read] - U8 bitcount; // [write] + U8 readBit; // for Bit-Manipulating Functions [read] + U8 writeBit; // [write] + } TAG, * LPTAG; typedef struct _ActionTAG @@ -354,6 +358,9 @@ int swf_FontSetInfo(TAG * t,SWFFONT * f); int swf_FontExport(int handle,SWFFONT * f); int swf_FontImport(int handle,SWFFONT * * f); +void swf_WriteFont(SWFFONT* font, char* filename, int useDefineFont2); +SWFFONT* swf_ReadFont(char* filename); + void swf_FontFree(SWFFONT * f); U32 swf_TextGetWidth(SWFFONT * font,U8 * s,int scale); @@ -457,7 +464,7 @@ U8 swf_isAllowedSpriteTag(TAG * t); U16 swf_GetDefineID(TAG * t); U16 swf_GetPlaceID(TAG * t); //PLACEOBJECT, PLACEOBJECT2 (sometimes), REMOVEOBJECT U16 swf_GetDepth(TAG * t); //PLACEOBJECT,PLACEOBJECT2,REMOVEOBJECT,REMOVEOBJECT2 -char* swf_GetTagName(TAG * t); //PLACEOBJECT2, FRAMELABEL +char* swf_GetName(TAG * t); //PLACEOBJECT2, FRAMELABEL MATRIX * swf_MatrixJoin(MATRIX * d,MATRIX * s1,MATRIX * s2); MATRIX * swf_MatrixMapTriangle(MATRIX * m,int dx,int dy, int x0,int y0,int x1,int y1,int x2,int y2);