25#include "common/endian.h"
27#include "cine/saveload.h"
32#define ANIM_HEADER_SIZE 0x16
65#define ANIM_MASKSPRITE 3
66#define ANIM_PALSPRITE 5
67#define ANIM_FULLSPRITE 8
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
105void freeAnimDataTable();
106void freeAnimDataRange(
byte startIdx,
byte numIdx);
107int loadResource(
const char *resourceName, int16 idx = -1, int16 frameIndex = -1);
109void generateMask(
const byte *sprite,
byte *mask, uint16 size,
byte transparency);
int _realWidth
Real image width in bytes.
Definition: anim.h:83
uint16 _var1
Something related to width.
Definition: anim.h:82
uint16 _bpp
Bit depth/type information.
Definition: anim.h:81
const byte * mask() const
Image mask (may be NULL)
Definition: anim.h:94
uint16 _height
Image height.
Definition: anim.h:80
const byte * data() const
Image data.
Definition: anim.h:93
uint16 _width
Image width (usually twice the real size)
Definition: anim.h:79
Definition: savefile.h:54
CineSaveGameFormat
Definition: saveload.h:63