X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=3e0dfcd109e20f1f8e83694643c928664527e4c6;hb=424c7018f80ecce81f59aace2bc61bba9fcae4fe;hp=548e67935366f5f5102962f4a8504d15d2865871;hpb=6d22f1376c2fcad7c872db608630468d3abcca23;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 548e679..3e0dfcd 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -72,8 +72,10 @@ extern "C" { #endif #define ALLOC_ARRAY(type, num) (((type)*)rfxalloc(sizeof(type)*(num))) -void* rfxalloc(int size); -void rfxdealloc(void*data); +void* rfx_alloc(int size); +void* rfx_calloc(int size); +void* rfx_realloc(void*data, int size); +void rfx_free(void*data); // SWF Types @@ -940,6 +942,23 @@ void swf_SetVideoStreamPFrame(TAG*tag, VIDEOSTREAM*s, RGBA*pic, int quant/* 1-31 void swf_SetVideoStreamMover(TAG*tag, VIDEOSTREAM*s, signed char* movex, signed char* movey, void** image, int quant); void swf_VideoStreamClear(VIDEOSTREAM*stream); +// swfrender.c + +typedef struct RENDERBUF +{ + int width; + int height; + int posx,posy; + void*internal; +} RENDERBUF; + +void swf_Render_Init(RENDERBUF*buf, int posx, int posy, int width, int height); +RGBA* swf_Render(RENDERBUF*dest); +void swf_RenderShape(RENDERBUF*dest, SHAPE2*shape, MATRIX*m, CXFORM*c, U16 depth,U16 clipdepth); +void swf_Render_AddImage(RENDERBUF*buf, U16 id, RGBA*img, int width, int height); +void swf_Render_ClearCanvas(RENDERBUF*dest); +void swf_Render_Delete(RENDERBUF*dest); + #ifdef __cplusplus } #endif