22 #ifndef CRYOMNI3D_SPRITES_H 23 #define CRYOMNI3D_SPRITES_H 25 #include "common/array.h" 26 #include "common/str.h" 28 #include "graphics/cursor.h" 46 void setupMapTable(
const uint *table, uint size);
48 void setSpriteHotspot(uint spriteId, uint x, uint y);
50 void replaceSprite(uint oldSpriteId, uint newSpriteId);
52 uint getSpritesCount()
const;
54 void replaceSpriteColor(uint spriteId, byte currentColor, byte newColor);
59 uint revMapSpriteId(uint
id)
const;
60 uint calculateSpriteId(uint baseId, uint offset)
const;
62 byte getKeyColor(uint spriteId)
const {
return 0; }
67 uint16 getWidth()
const override {
return _width; }
68 uint16 getHeight()
const override {
return _height; }
69 uint16 getHotspotX()
const override {
return _offX; }
70 uint16 getHotspotY()
const override {
return _offY; }
71 byte getKeyColor()
const override {
return 0; }
73 const byte *getSurface()
const override {
return _data; }
75 const byte *getPalette()
const override {
return nullptr; }
76 byte getPaletteStartIndex()
const override {
return 0; }
77 uint16 getPaletteCount()
const override {
return 0; }
79 uint setup(uint16 width, uint16 height);
92 ~CryoCursor()
override;
Definition: cryomni3d.h:62
Definition: algorithm.h:29
Definition: formatinfo.h:28