22 #ifndef CHEWY_MCGA_GRAPHICS_H 23 #define CHEWY_MCGA_GRAPHICS_H 25 #include "graphics/screen.h" 36 void setPointer(byte *ptr);
38 void setPalette(byte *palette);
39 void raster_col(int16 c, int16 r, int16 g, int16 b);
40 void fadeIn(byte *palette);
42 void set_partialpalette(
const byte *palette, int16 startCol, int16 nr);
45 void drawLine(int16 x1, int16 y1, int16 x2, int16 y2, int16 color);
46 void box(int16 x1, int16 y1, int16 x2, int16 y2, int16 color);
47 void boxFill(int16 x1, int16 y1, int16 x2, int16 y2, int16 color);
48 void pop_box(int16 x, int16 y, int16 x1, int16 y1,
49 int16 col1, int16 col2, int16 back_col);
53 void spriteSave(byte *spritePtr, int16 x, int16 y, int16 width,
55 void spriteSet(byte *sptr, int16 x, int16 y, int16 scrWidth, uint16 spriteWidth = 0, uint16 spriteHeight = 0);
56 void scale_set(byte *sptr, int16 x, int16 y, int16 xdiff,
57 int16 ydiff, int16 scrwidth);
58 void map_spr2screen(byte *sptr, int16 x, int16 y);
60 void plot_scan_cur(int16 x, int16 y, int16 fcol, int16 bcol, int16 scrwidth,
62 int16 scanxy(int16 x, int16 y, int16 fcol, int16 bcol, int16 cur_col, int16 scrwidth,
const char *
string, ...);
63 void printxy(int16 x, int16 y, int16 fgCol, int16 bgCol, int16 scrwidth,
65 void move(int16 x, int16 y);
70 void putz(
unsigned char c, int16 fgCol, int16 bgCol, int16 scrWidth);
74 void setYVals(
int spriteHeight);
75 void clip(byte *&source, byte *&dest, int16 &x, int16 &y);
76 void zoom_set(byte *source, int16 x, int16 y, int16 xDiff, int16 yDiff, int16 scrWidth);
78 byte _palTable[PALETTE_SIZE];
81 int _zoomSpriteDeltaX2;
82 int _zoomSpriteDeltaY2;
83 int _zoomSpriteXVal1, _zoomSpriteXVal2;
84 int _zoomSpriteYVal1, _zoomSpriteYVal2;
Definition: mcga_graphics.h:29