22 #ifndef SCI_GRAPHICS_VIEW_H 23 #define SCI_GRAPHICS_VIEW_H 31 int16 scriptWidth, scriptHeight;
47 SCI_VIEW_EGAMAPPING_SIZE = 16,
48 SCI_VIEW_EGAMAPPING_COUNT = 8
64 GuiResourceId getResourceId()
const;
65 int16 getWidth(int16 loopNo, int16 celNo)
const;
66 int16 getHeight(int16 loopNo, int16 celNo)
const;
67 const CelInfo *getCelInfo(int16 loopNo, int16 celNo)
const;
68 void getCelRect(int16 loopNo, int16 celNo, int16 x, int16 y, int16 z,
Common::Rect &outRect)
const;
69 void getCelSpecialHoyle4Rect(int16 loopNo, int16 celNo, int16 x, int16 y, int16 z,
Common::Rect &outRect)
const;
70 void getCelScaledRect(int16 loopNo, int16 celNo, int16 x, int16 y, int16 z, int16 scaleX, int16 scaleY,
Common::Rect &outRect)
const;
72 void draw(
const Common::Rect &rect,
const Common::Rect &clipRect,
const Common::Rect &clipRectTranslated, int16 loopNo, int16 celNo, byte priority, uint16 EGAmappingNr,
bool upscaledHires, uint16 scaleSignal = 0);
73 void drawScaled(
const Common::Rect &rect,
const Common::Rect &clipRect,
const Common::Rect &clipRectTranslated, int16 loopNo, int16 celNo, byte priority, int16 scaleX, int16 scaleY, uint16 scaleSignal = 0);
74 uint16 getLoopCount()
const {
return _loop.size(); }
75 uint16 getCelCount(int16 loopNo)
const;
80 void adjustToUpscaledCoordinates(int16 &y, int16 &x);
81 void adjustBackUpscaledCoordinates(int16 &y, int16 &x);
85 void unpackCel(int16 loopNo, int16 celNo,
SciSpan<byte> &outPtr);
86 void unditherBitmap(
SciSpan<byte> &bitmap, int16 width, int16 height, byte clearKey);
87 byte getMappedColor(byte color, uint16 scaleSignal,
const Palette *palette,
int x2,
int y2);
96 GuiResourceId _resourceId;
106 int16 _adjustForSci0Early;
115 #endif // SCI_GRAPHICS_VIEW_H
Definition: resource.h:327
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: coordadjuster.h:37
Definition: resource.h:256
Definition: helpers.h:247