SCI32: Implement kBitmapCreateFromView and kBitmapGetInfo

Used by Torin room 40300 to perform pathfinding by bitmap.
This commit is contained in:
Colin Snover 2016-09-24 21:17:25 -05:00
parent 3208f063b5
commit 9d2397e1e9
3 changed files with 51 additions and 9 deletions

View file

@ -1120,6 +1120,15 @@ public:
}
virtual void saveLoadWithSerializer(Common::Serializer &ser);
void applyRemap(SciArray &clut) {
const int length = getWidth() * getHeight();
uint8 *pixel = getPixels();
for (int i = 0; i < length; ++i) {
uint8 color = clut.int16At(*pixel);
*pixel++ = color;
}
}
};
struct BitmapTable : public SegmentObjTable<SciBitmap> {