ScummVM API documentation
Sci::GfxDefaultDriver Class Reference
Inheritance diagram for Sci::GfxDefaultDriver:
Sci::GfxDriver Sci::SCI1_VGAGreyScaleDriver Sci::UpscaledGfxDriver Sci::KQ6WinGfxDriver Sci::PC98Gfx16ColorsDriver Sci::SCI0_PC98Gfx8ColorsDriver Sci::SCI1_PC98Gfx8ColorsDriver

Public Member Functions

 GfxDefaultDriver (uint16 screenWidth, uint16 screenHeight, bool isSCI0, bool rgbRendering)
 
void initScreen (const Graphics::PixelFormat *srcRGBFormat) override
 
void setPalette (const byte *colors, uint start, uint num, bool update, const PaletteMod *palMods, const byte *palModMapping) override
 
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) override
 
void replaceCursor (const void *cursor, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor) override
 
void replaceMacCursor (const Graphics::Cursor *) override
 
void copyCurrentBitmap (byte *dest, uint32 size) const override
 
void copyCurrentPalette (byte *dest, int start, int num) const override
 
void drawTextFontGlyph (const byte *, int, int, int, int, int, int, const PaletteMod *, const byte *) override
 
bool supportsPalIntensity () const override
 
bool supportsHiResGraphics () const override
 
bool driverBasedTextRendering () const override
 
- Public Member Functions inherited from Sci::GfxDriver
 GfxDriver (uint16 screenWidth, uint16 screenHeight, int numColors)
 
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 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)
 
uint16 numColors () const
 
byte pixelSize () const
 

Protected Types

typedef void(* ColorConvProc) (byte *, const byte *, int, int, int, const byte *)
 
typedef void(* ColorConvModProc) (byte *, const byte *, int, int, int, const byte *, const byte *, Graphics::PixelFormat &, const PaletteMod *, const byte *)
 

Protected Member Functions

void updatePalette (const byte *colors, uint start, uint num)
 

Protected Attributes

byte * _compositeBuffer
 
byte * _currentBitmap
 
byte * _currentPalette
 
byte * _internalPalette
 
uint16 _virtualW
 
uint16 _virtualH
 
Graphics::PixelFormat _format
 
byte _srcPixelSize
 
bool _cursorUsesScreenPalette
 
const bool _alwaysCreateBmpBuffer
 
const bool _requestRGBMode
 
ColorConvProc _colorConv
 
ColorConvModProc _colorConvMod
 
- Protected Attributes inherited from Sci::GfxDriver
bool _ready
 
const uint16 _screenW
 
const uint16 _screenH
 
uint16 _numColors
 
byte _pixelSize
 

Additional Inherited Members

- Public Types inherited from Sci::GfxDriver
enum  DrawFlags : uint32 { kHiResMode = 1 << 0, kMovieMode = 1 << 1 }
 
- Static Protected Member Functions inherited from Sci::GfxDriver
static bool checkDriver (const char *const *driverNames, int listSize)
 

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