Public Member Functions | |
Shape (const uint8 *data, uint32 size, const ConvertShapeFormat *format, const uint16 flexId, const uint32 shapenum) | |
Shape (Common::SeekableReadStream *src, const ConvertShapeFormat *format) | |
void | setPalette (const Palette *pal) |
const Palette * | getPalette () const |
uint32 | frameCount () const |
void | getTotalDimensions (int32 &w, int32 &h, int32 &x, int32 &y) const |
const ShapeFrame * | getFrame (unsigned int frame) const |
void | getShapeId (uint16 &flexId, uint32 &shapenum) const |
Static Public Member Functions | |
static const ConvertShapeFormat * | DetectShapeFormat (const uint8 *data, uint32 size) |
static const ConvertShapeFormat * | DetectShapeFormat (Common::SeekableReadStream &ds, uint32 size) |
void Ultima::Ultima8::Shape::getTotalDimensions | ( | int32 & | w, |
int32 & | h, | ||
int32 & | x, | ||
int32 & | y | ||
) | const |
Returns the dimensions of all frames combined (w,h) = size of smallest rectangle covering all frames (x,y) = coordinates of origin relative to top-left point of rectangle