GOB: Add a class for CMP sprites with RXY coordinates

This commit is contained in:
Sven Hesse 2012-03-11 18:31:39 +01:00
parent d2d31de8cb
commit 17e3bfd42c
5 changed files with 340 additions and 0 deletions

View file

@ -30,6 +30,15 @@ RXYFile::RXYFile(Common::SeekableReadStream &rxy) : _width(0), _height(0) {
load(rxy);
}
RXYFile::RXYFile(uint16 width, uint16 height) : _realCount(1), _width(width), _height(height) {
_coords.resize(1);
_coords[0].left = 0;
_coords[0].top = 0;
_coords[0].right = _width - 1;
_coords[0].bottom = _height - 1;
}
RXYFile::~RXYFile() {
}