21 #ifndef STARTREK_GRAPHICS_H 22 #define STARTREK_GRAPHICS_H 24 #include "startrek/bitmap.h" 25 #include "startrek/font.h" 26 #include "startrek/startrek.h" 27 #include "startrek/sprite.h" 29 #include "common/ptr.h" 30 #include "common/rect.h" 31 #include "common/stream.h" 42 const int SCREEN_WIDTH = 320;
43 const int SCREEN_HEIGHT = 200;
45 const int MAX_SPRITES = 32;
61 void fillBackgroundRect(
const Common::Rect &rect, byte color);
62 byte *getBackgroundPixels();
63 byte *lockScreenPixels();
64 void unlockScreenPixels();
66 void clearScreenAndPriBuffer();
71 void copyRectBetweenBitmaps(
Bitmap *destBitmap,
int destX,
int destY,
Bitmap *srcBitmap,
int srcX,
int srcY,
int width,
int height);
78 void incPaletteFadeLevel();
79 void decPaletteFadeLevel();
83 void setPri(byte val);
84 byte getPriValue(
int x,
int y);
92 void popMouseBitmap();
93 void toggleMouse(
bool visible);
103 void unlockMousePosition();
104 void warpMouse(int16 x, int16 y);
116 void drawAllSprites(
bool updateScreenFlag =
true);
138 void addSprite(
Sprite *sprite);
139 void delSprite(
Sprite *sprite);
145 byte *getFontGfx(
char c);
147 void copyBackgroundScreen();
148 void loadEGAData(
const char *egaFile);
149 void drawBackgroundImage(
const char *filename);
161 byte _priData[SCREEN_WIDTH * SCREEN_HEIGHT / 2];
163 int16 _paletteFadeLevel;
168 Sprite *_sprites[MAX_SPRITES];
172 Sprite *_pushedSprites[MAX_SPRITES];
173 int _pushedNumSprites;
void lockMousePosition(int16 x, int16 y)
void loadPalette(const String &paletteFile)
void forceDrawAllSprites(bool updateScreenFlag=true)
void setPaletteFadeLevel(byte *palData, int fadeLevel)
void setMouseBitmap(Common::String bitmapName)
void drawBitmapToBackground(const Common::Rect &origRect, const Common::Rect &drawRect, Bitmap *bitmap)
Sprite * getSpriteAt(int16 x, int16 y)
Definition: formatinfo.h:28
int16 x
Definition: rect.h:46
int16 y
Definition: rect.h:47
Definition: startrek.h:239
void drawAllSpritesInRectToSurface(const Common::Rect &rect, ::Graphics::Surface *surface)