22 #ifndef AGS_ENGINE_AC_DYNAMICSPRITE_H 23 #define AGS_ENGINE_AC_DYNAMICSPRITE_H 25 #include "ags/engine/ac/dynobj/script_dynamic_sprite.h" 26 #include "ags/engine/ac/dynobj/script_drawing_surface.h" 30 void DynamicSprite_Delete(ScriptDynamicSprite *sds);
31 ScriptDrawingSurface *DynamicSprite_GetDrawingSurface(ScriptDynamicSprite *dss);
32 int DynamicSprite_GetGraphic(ScriptDynamicSprite *sds);
33 int DynamicSprite_GetWidth(ScriptDynamicSprite *sds);
34 int DynamicSprite_GetHeight(ScriptDynamicSprite *sds);
35 int DynamicSprite_GetColorDepth(ScriptDynamicSprite *sds);
36 void DynamicSprite_Resize(ScriptDynamicSprite *sds,
int width,
int height);
37 void DynamicSprite_Flip(ScriptDynamicSprite *sds,
int direction);
38 void DynamicSprite_CopyTransparencyMask(ScriptDynamicSprite *sds,
int sourceSprite);
39 void DynamicSprite_ChangeCanvasSize(ScriptDynamicSprite *sds,
int width,
int height,
int x,
int y);
40 void DynamicSprite_Crop(ScriptDynamicSprite *sds,
int x1,
int y1,
int width,
int height);
41 void DynamicSprite_Rotate(ScriptDynamicSprite *sds,
int angle,
int width,
int height);
42 void DynamicSprite_Tint(ScriptDynamicSprite *sds,
int red,
int green,
int blue,
int saturation,
int luminance);
43 int DynamicSprite_SaveToFile(ScriptDynamicSprite *sds,
const char *namm);
44 ScriptDynamicSprite *DynamicSprite_CreateFromSaveGame(
int sgslot,
int width,
int height);
45 ScriptDynamicSprite *DynamicSprite_CreateFromFile(
const char *filename);
46 ScriptDynamicSprite *DynamicSprite_CreateFromScreenShot(
int width,
int height);
47 ScriptDynamicSprite *DynamicSprite_CreateFromExistingSprite(
int slot,
int preserveAlphaChannel);
48 ScriptDynamicSprite *DynamicSprite_CreateFromDrawingSurface(ScriptDrawingSurface *sds,
int x,
int y,
int width,
int height);
49 ScriptDynamicSprite *DynamicSprite_Create(
int width,
int height,
int alphaChannel);
50 ScriptDynamicSprite *DynamicSprite_CreateFromExistingSprite_Old(
int slot);
51 ScriptDynamicSprite *DynamicSprite_CreateFromBackground(
int frame,
int x1,
int y1,
int width,
int height);
63 void free_dynamic_sprite(
int slot,
bool notify_all =
true);