ScummVM API documentation
Saga::Gfx Class Reference

Public Member Functions

 Gfx (SagaEngine *vm, OSystem *system, int width, int height)
 
void initPalette ()
 
void setPalette (const PalEntry *pal, bool full=false)
 
void loadECSExtraPalettes ()
 
void setPaletteColor (int n, int r, int g, int b)
 
void getCurrentPal (PalEntry *src_pal)
 
void savePalette ()
 
void restorePalette ()
 
void palToBlack (PalEntry *src_pal, double percent)
 
void blackToPal (PalEntry *src_pal, double percent)
 
void palFade (PalEntry *srcPal, int16 from, int16 to, int16 start, int16 numColors, double percent)
 
void showCursor (bool state)
 
void setCursor (CursorType cursorType=kCursorNormal)
 
void drawFrame (const Common::Point &p1, const Common::Point &p2, int color)
 
void drawRect (const Common::Rect &destRect, int color)
 
void fillRect (const Common::Rect &destRect, uint32 color)
 
void drawRegion (const Common::Rect &destRect, const byte *sourceBuffer)
 
void drawBgRegion (const Common::Rect &destRect, const byte *sourceBuffer)
 
void drawPalette ()
 
void hLine (int x, int y, int x2, uint32 color)
 
void vLine (int x, int y, int y2, uint32 color)
 
void setPixelColor (int x, int y, byte color)
 
void drawPolyLine (const Common::Point *points, int count, int color)
 
byte * getBackBufferPixels ()
 
byte * getSJISBackBufferPixels ()
 
SurfacegetSJISBackBuffer ()
 
uint16 getBackBufferWidth ()
 
uint16 getSJISBackBufferWidth ()
 
uint16 getBackBufferHeight ()
 
uint16 getSJISBackBufferHeight ()
 
uint16 getBackBufferPitch ()
 
uint16 getSJISBackBufferPitch ()
 
void getBackBufferRect (Common::Rect &rect)
 

The documentation for this class was generated from the following file: