22 #ifndef KYRA_SCREEN_V2_H 23 #define KYRA_SCREEN_V2_H 25 #include "kyra/graphics/screen.h" 26 #include "kyra/engine/kyra_v2.h" 36 void checkedPageUpdate(
int srcPage,
int dstPage);
39 uint8 *generateOverlay(
const Palette &pal, uint8 *buffer,
int color, uint weight,
int maxColor = -1);
40 void applyOverlay(
int x,
int y,
int w,
int h,
int pageNum,
const uint8 *overlay);
41 int findLeastDifferentColor(
const uint8 *paletteEntry,
const Palette &pal, uint8 firstColor, uint16 numColors,
bool skipSpecialColors =
false);
43 void getFadeParams(
const Palette &pal,
int delay,
int &delayInc,
int &diff)
override;
45 bool timedPaletteFadeStep(uint8 *pal1, uint8 *pal2, uint32 elapsedTime, uint32 totalTime);
48 uint8 *getPtrToShape(uint8 *shpFile,
int shape);
49 const uint8 *getPtrToShape(
const uint8 *shpFile,
int shape);
51 int getShapeScaledWidth(
const uint8 *shpFile,
int scale);
52 int getShapeScaledHeight(
const uint8 *shpFile,
int scale);
54 uint16 getShapeSize(
const uint8 *shp);
56 uint8 *makeShapeCopy(
const uint8 *src,
int index);
59 int getRectSize(
int w,
int h)
override;
60 bool calcBounds(
int w0,
int h0,
int &x1,
int &y1,
int &w1,
int &h1,
int &x2,
int &y2,
int &w2);
63 void setTextColorMap(
const uint8 *cmap)
override;
66 virtual int getLayer(
int x,
int y);
69 void wsaFrameAnimationStep(
int x1,
int y1,
int x2,
int y2,
int w1,
int h1,
int w2,
int h2,
int srcPage,
int dstPage,
int dim);
72 void copyPageMemory(
int srcPage,
int srcPos,
int dstPage,
int dstPos,
int numBytes);
73 void copyRegionEx(
int srcPage,
int srcW,
int srcH,
int dstPage,
int dstX,
int dstY,
int dstW,
int dstH,
const ScreenDim *d,
bool flag =
false);
75 uint8 *_wsaFrameAnimBuffer;
Definition: kyra_v1.h:126
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: detection.h:27
Definition: screen_v2.h:30