25 #include "common/endian.h" 27 #include "cine/saveload.h" 32 #define ANIM_HEADER_SIZE 0x16 62 #define ANIM_RAW 0 // memcpy 63 #define ANIM_MASK 1 // convertMask 64 #define ANIM_SPRITE 2 // gfxConvertSpriteToRaw 65 #define ANIM_MASKSPRITE 3 // gfxConvertSpriteToRaw + generateMask 66 #define ANIM_PALSPRITE 5 // convert8BBP 67 #define ANIM_FULLSPRITE 8 // convert8BBP2 91 int size() {
return _size; }
92 int16 frameIndex() {
return _frameIdx; }
93 const byte *
data()
const {
return _data; }
94 const byte *
mask()
const {
return _mask; }
95 byte getColor(
int x,
int y);
97 void load(byte *d,
int type, uint16 w, uint16 h, int16 file, int16 frame,
const char *n, byte transparent = 0);
103 #define NUM_MAX_ANIMDATA 255 105 void freeAnimDataTable();
106 void freeAnimDataRange(byte startIdx, byte numIdx);
107 int loadResource(
const char *resourceName, int16 idx = -1, int16 frameIndex = -1);
109 void generateMask(
const byte *sprite, byte *mask, uint16 size, byte transparency);
uint16 _width
Image width (usually twice the real size)
Definition: anim.h:79
const byte * data() const
Image data.
Definition: anim.h:93
Definition: savefile.h:54
int _realWidth
Real image width in bytes.
Definition: anim.h:83
const byte * mask() const
Image mask (may be NULL)
Definition: anim.h:94
uint16 _var1
Something related to width.
Definition: anim.h:82
uint16 _height
Image height.
Definition: anim.h:80
uint16 _bpp
Bit depth/type information.
Definition: anim.h:81
CineSaveGameFormat
Definition: saveload.h:63