diff options
author | Eugene Sandulenko | 2005-04-05 15:07:40 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-04-05 15:07:40 +0000 |
commit | 1758c5b211a39c29a193546348e7cc6e7bc2e8c9 (patch) | |
tree | 225d803c62c79d6a6d95ada0096e8832e9e65044 /gob/draw.h | |
parent | b399a052f1a60df4731aa15d330e1c0b759ed857 (diff) | |
download | scummvm-rg350-1758c5b211a39c29a193546348e7cc6e7bc2e8c9.tar.gz scummvm-rg350-1758c5b211a39c29a193546348e7cc6e7bc2e8c9.tar.bz2 scummvm-rg350-1758c5b211a39c29a193546348e7cc6e7bc2e8c9.zip |
Initial checking of Gob engine
svn-id: r17388
Diffstat (limited to 'gob/draw.h')
-rw-r--r-- | gob/draw.h | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/gob/draw.h b/gob/draw.h new file mode 100644 index 0000000000..71e0baa35b --- /dev/null +++ b/gob/draw.h @@ -0,0 +1,111 @@ +/* +** Gobliiins 1 +** Original game by CoktelVision +** +** Reverse engineered by Ivan Dubrov <WFrag@yandex.ru> +** +*/ +#ifndef __DRAW_H +#define __DRAW_H + +#include "gob/video.h" + +namespace Gob { + +#define RENDERFLAG_NOINVALIDATE 1 +#define RENDERFLAG_CAPTUREPUSH 2 +#define RENDERFLAG_CAPTUREPOP 8 +#define RENDERFLAG_USEDELTAS 0x10 + +typedef struct Draw_FontToSprite { + char sprite; + char base; + char width; + char height; +} Draw_FontToSprite; + +extern int16 draw_fontIndex; +extern int16 draw_spriteLeft; +extern int16 draw_spriteTop; +extern int16 draw_spriteRight; +extern int16 draw_spriteBottom; +extern int16 draw_destSpriteX; +extern int16 draw_destSpriteY; +extern int16 draw_backColor; +extern int16 draw_frontColor; +extern char draw_letterToPrint; +extern Draw_FontToSprite draw_fontToSprite[4]; +extern int16 draw_destSurface; +extern int16 draw_sourceSurface; +extern int16 draw_renderFlags; +extern int16 draw_backDeltaX; +extern int16 draw_backDeltaY; +extern FontDesc *draw_fonts[4]; +extern char *draw_textToPrint; +extern int16 draw_transparency; +extern SurfaceDesc *draw_spritesArray[50]; + +extern int16 draw_invalidatedCount; +extern int16 draw_invalidatedTops[30]; +extern int16 draw_invalidatedLefts[30]; +extern int16 draw_invalidatedRights[30]; +extern int16 draw_invalidatedBottoms[30]; + +extern char draw_noInvalidated; +extern char draw_doFullFlip; +extern char draw_paletteCleared; + +extern int16 draw_cursorIndex; +extern int16 draw_transparentCursor; + +extern SurfaceDesc *draw_backSurface; +extern SurfaceDesc *draw_frontSurface; + +extern int16 draw_unusedPalette1[18]; +extern int16 draw_unusedPalette2[16]; +extern Color draw_vgaPalette[256]; +extern Color draw_vgaSmallPalette[16]; + +extern int16 draw_cursorX; +extern int16 draw_cursorY; +extern int16 draw_cursorWidth; +extern int16 draw_cursorHeight; + +extern int16 draw_cursorXDeltaVar; +extern int16 draw_cursorYDeltaVar; + +extern SurfaceDesc *draw_cursorSprites; +extern SurfaceDesc *draw_cursorBack; +extern int16 draw_cursorAnim; +extern char draw_cursorAnimLow[40]; +extern char draw_cursorAnimHigh[40]; +extern char draw_cursorAnimDelays[40]; +extern char draw_applyPal; + +void draw_invalidateRect(int16 left, int16 top, int16 right, int16 bottom); +void draw_blitInvalidated(void); +void draw_setPalette(void); +void draw_clearPalette(void); +void draw_blitCursor(void); + +void draw_spriteOperation(int16 operation); +void draw_animateCursor(int16 cursor); +void draw_interPalLoad(void); +void draw_printText(void); +// Draw operations + +#define DRAW_BLITSURF 0 +#define DRAW_PUTPIXEL 1 +#define DRAW_FILLRECT 2 +#define DRAW_DRAWLINE 3 +#define DRAW_INVALIDATE 4 +#define DRAW_LOADSPRITE 5 +#define DRAW_PRINTTEXT 6 +#define DRAW_DRAWBAR 7 +#define DRAW_CLEARRECT 8 +#define DRAW_FILLRECTABS 9 +#define DRAW_DRAWLETTER 10 + +} // End of namespace Gob + +#endif /* __DRAW_H */ |