ScummVM API documentation
Sci::GfxDriver Class Referenceabstract
Inheritance diagram for Sci::GfxDriver:
Sci::GfxDefaultDriver Sci::SCI0_DOSPreVGADriver Sci::SCI1_EGADriver Sci::SCI1_VGAGreyScaleDriver Sci::UpscaledGfxDriver Sci::SCI0_CGABWDriver Sci::SCI0_CGADriver Sci::SCI0_HerculesDriver Sci::KQ6WinGfx16ColorsDriver Sci::KQ6WinGfxDriver Sci::PC98Gfx16ColorsDriver Sci::SCI0_PC98Gfx8ColorsDriver Sci::SCI1_PC98Gfx8ColorsDriver

Public Types

enum  DrawFlags : uint32 { kHiResMode = 1 << 0, kMovieMode = 1 << 1 }
 

Public Member Functions

 GfxDriver (uint16 screenWidth, uint16 screenHeight, int numColors)
 
virtual void initScreen (const Graphics::PixelFormat *srcRGBFormat=nullptr)=0
 
virtual void setPalette (const byte *colors, uint start, uint num, bool update, const PaletteMod *palMods, const byte *palModMapping)=0
 
virtual void copyRectToScreen (const byte *src, int srcX, int srcY, int pitch, int destX, int destY, int w, int h, const PaletteMod *palMods, const byte *palModMapping)=0
 
virtual void replaceCursor (const void *cursor, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor)=0
 
virtual void replaceMacCursor (const Graphics::Cursor *cursor)=0
 
virtual Common::Point getMousePos () const
 
virtual void setMousePos (const Common::Point &pos) const
 
virtual void setShakePos (int shakeXOffset, int shakeYOffset) const
 
virtual void clearRect (const Common::Rect &r) const
 
virtual void copyCurrentBitmap (byte *dest, uint32 size) const =0
 
virtual void copyCurrentPalette (byte *dest, int start, int num) const
 
virtual void drawTextFontGlyph (const byte *src, int pitch, int hiresDestX, int hiresDestY, int hiresW, int hiresH, int transpColor, const PaletteMod *palMods, const byte *palModMapping)=0
 
virtual byte remapTextColor (byte color) const
 
virtual void setColorMap (const byte *colorMap)
 
virtual Common::Point getRealCoords (Common::Point &pos) const
 
virtual void setFlags (uint32 flags)
 
virtual void clearFlags (uint32 flags)
 
virtual bool supportsPalIntensity () const =0
 
virtual bool supportsHiResGraphics () const =0
 
virtual bool driverBasedTextRendering () const =0
 
uint16 numColors () const
 
byte pixelSize () const
 

Static Protected Member Functions

static bool checkDriver (const char *const *driverNames, int listSize)
 

Protected Attributes

bool _ready
 
const uint16 _screenW
 
const uint16 _screenH
 
uint16 _numColors
 
byte _pixelSize
 

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