SCI32: Implement kBitmapCreateFromView and kBitmapGetInfo
Used by Torin room 40300 to perform pathfinding by bitmap.
This commit is contained in:
parent
3208f063b5
commit
9d2397e1e9
3 changed files with 51 additions and 9 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue