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"
30void DynamicSprite_Delete(ScriptDynamicSprite *sds);
31ScriptDrawingSurface *DynamicSprite_GetDrawingSurface(ScriptDynamicSprite *dss);
32int DynamicSprite_GetGraphic(ScriptDynamicSprite *sds);
33int DynamicSprite_GetWidth(ScriptDynamicSprite *sds);
34int DynamicSprite_GetHeight(ScriptDynamicSprite *sds);
35int DynamicSprite_GetColorDepth(ScriptDynamicSprite *sds);
36void DynamicSprite_Resize(ScriptDynamicSprite *sds,
int width,
int height);
37void DynamicSprite_Flip(ScriptDynamicSprite *sds,
int direction);
38void DynamicSprite_CopyTransparencyMask(ScriptDynamicSprite *sds,
int sourceSprite);
39void DynamicSprite_ChangeCanvasSize(ScriptDynamicSprite *sds,
int width,
int height,
int x,
int y);
40void DynamicSprite_Crop(ScriptDynamicSprite *sds,
int x1,
int y1,
int width,
int height);
41void DynamicSprite_Rotate(ScriptDynamicSprite *sds,
int angle,
int width,
int height);
42void DynamicSprite_Tint(ScriptDynamicSprite *sds,
int red,
int green,
int blue,
int saturation,
int luminance);
43int DynamicSprite_SaveToFile(ScriptDynamicSprite *sds,
const char *namm);
44ScriptDynamicSprite *DynamicSprite_CreateFromSaveGame(
int sgslot,
int width,
int height);
45ScriptDynamicSprite *DynamicSprite_CreateFromFile(
const char *filename);
46ScriptDynamicSprite *DynamicSprite_CreateFromScreenShot(
int width,
int height);
47ScriptDynamicSprite *DynamicSprite_CreateFromExistingSprite(
int slot,
int preserveAlphaChannel);
48ScriptDynamicSprite *DynamicSprite_CreateFromDrawingSurface(ScriptDrawingSurface *sds,
int x,
int y,
int width,
int height);
49ScriptDynamicSprite *DynamicSprite_Create(
int width,
int height,
int alphaChannel);
50ScriptDynamicSprite *DynamicSprite_CreateFromExistingSprite_Old(
int slot);
51ScriptDynamicSprite *DynamicSprite_CreateFromBackground(
int frame,
int x1,
int y1,
int width,
int height);
63void free_dynamic_sprite(
int slot,
bool notify_all =
true);