22 #ifndef MOHAWK_GRAPHICS_H 23 #define MOHAWK_GRAPHICS_H 25 #include "mohawk/bitmap.h" 27 #include "common/hashmap.h" 28 #include "common/rect.h" 37 class MohawkEngine_LivingBooks;
49 byte *getPalette()
const {
return _palette; }
53 void convertToTrueColor();
57 int getOffsetX()
const {
return _offsetX; }
58 int getOffsetY()
const {
return _offsetY; }
59 void setOffsetX(
int x) { _offsetX = x; }
60 void setOffsetY(
int y) { _offsetY = y; }
65 int _offsetX, _offsetY;
80 void preloadImage(uint16 image);
81 virtual void setPalette(uint16
id);
82 void copyAnimImageToScreen(uint16 image,
int left = 0,
int top = 0);
84 void copyAnimSubImageToScreen(uint16 image, uint16 subimage,
int left = 0,
int top = 0);
86 void getSubImageSize(uint16 image, uint16 subimage, uint16 &width, uint16 &height);
Definition: graphics.h:40
Definition: graphics.h:68
Definition: formatinfo.h:28