ScummVM API documentation
Ultima::Ultima8::Shape Class Reference
Inheritance diagram for Ultima::Ultima8::Shape:
Ultima::Ultima8::ShapeFont

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 PalettegetPalette () const
 
uint32 frameCount () const
 
void getTotalDimensions (int32 &w, int32 &h, int32 &x, int32 &y) const
 
const ShapeFramegetFrame (unsigned int frame) const
 
void getShapeId (uint16 &flexId, uint32 &shapenum) const
 

Static Public Member Functions

static const ConvertShapeFormatDetectShapeFormat (const uint8 *data, uint32 size)
 
static const ConvertShapeFormatDetectShapeFormat (Common::SeekableReadStream &ds, uint32 size)
 

Member Function Documentation

◆ getTotalDimensions()

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


The documentation for this class was generated from the following file: