GRAPHICS: Add cursor palette start/count functions
This commit is contained in:
parent
1793d92c8b
commit
91ae23ebf2
3 changed files with 11 additions and 0 deletions
|
@ -49,8 +49,13 @@ public:
|
||||||
|
|
||||||
/** Return the cursor's surface. */
|
/** Return the cursor's surface. */
|
||||||
virtual const byte *getSurface() const = 0;
|
virtual const byte *getSurface() const = 0;
|
||||||
|
|
||||||
/** Return the cursor's palette in RGB format. */
|
/** Return the cursor's palette in RGB format. */
|
||||||
virtual const byte *getPalette() const = 0;
|
virtual const byte *getPalette() const = 0;
|
||||||
|
/** Return the starting index of the palette. */
|
||||||
|
virtual byte getPaletteStartIndex() const = 0;
|
||||||
|
/** Return the number of colors in the palette. */
|
||||||
|
virtual uint16 getPaletteCount() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End of namespace Graphics
|
} // End of namespace Graphics
|
||||||
|
|
|
@ -57,7 +57,10 @@ public:
|
||||||
byte getKeyColor() const { return 0xFF; }
|
byte getKeyColor() const { return 0xFF; }
|
||||||
|
|
||||||
const byte *getSurface() const { return _surface; }
|
const byte *getSurface() const { return _surface; }
|
||||||
|
|
||||||
const byte *getPalette() const { return _palette; }
|
const byte *getPalette() const { return _palette; }
|
||||||
|
byte getPaletteStartIndex() const { return 0; }
|
||||||
|
uint16 getPaletteCount() const { return 256; }
|
||||||
|
|
||||||
/** Read the cursor's data out of a stream. */
|
/** Read the cursor's data out of a stream. */
|
||||||
bool readFromStream(Common::SeekableReadStream &stream, bool forceMonochrome = false);
|
bool readFromStream(Common::SeekableReadStream &stream, bool forceMonochrome = false);
|
||||||
|
|
|
@ -54,7 +54,10 @@ public:
|
||||||
byte getKeyColor() const;
|
byte getKeyColor() const;
|
||||||
|
|
||||||
const byte *getSurface() const { return _surface; }
|
const byte *getSurface() const { return _surface; }
|
||||||
|
|
||||||
const byte *getPalette() const { return _palette; }
|
const byte *getPalette() const { return _palette; }
|
||||||
|
byte getPaletteStartIndex() const { return 0; }
|
||||||
|
uint16 getPaletteCount() const { return 256; }
|
||||||
|
|
||||||
/** Read the cursor's data out of a stream. */
|
/** Read the cursor's data out of a stream. */
|
||||||
bool readFromStream(Common::SeekableReadStream &stream);
|
bool readFromStream(Common::SeekableReadStream &stream);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue