ScummVM API documentation
Scumm::Gdi Class Reference
Inheritance diagram for Scumm::Gdi:
Scumm::GdiHE Scumm::GdiNES Scumm::GdiV1 Scumm::GdiV2

Public Types

enum  DrawBitmapFlags { dbAllowMaskOr = 1 << 0, dbDrawMaskOnAll = 1 << 1, dbObjectMode = 2 << 2 }
 

Public Member Functions

 Gdi (ScummEngine *vm)
 
virtual void setRenderModeColorMap (const byte *map)
 
virtual byte remapColorToRenderMode (byte col) const
 
virtual void init ()
 
virtual void roomChanged (byte *roomptr)
 
virtual void loadTiles (byte *roomptr)
 
void setTransparentColor (byte transparentColor)
 
void drawBitmap (const byte *ptr, VirtScreen *vs, int x, int y, const int width, const int height, int stripnr, int numstrip, byte flag)
 
byte * getMaskBuffer (int x, int y, int z)
 
void disableZBuffer ()
 
void enableZBuffer ()
 
void resetBackground (int top, int bottom, int strip)
 

Public Attributes

bool _distaff
 
int _numZBuffer
 
int _imgBufOffs [8]
 
int32 _numStrips
 

Protected Member Functions

bool decompressBitmap (byte *dst, int dstPitch, const byte *src, int numLinesToProcess)
 
void drawStripEGA (byte *dst, int dstPitch, const byte *src, int height) const
 
void drawStripComplex (byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const
 
void drawStripBasicH (byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const
 
void drawStripBasicV (byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const
 
void drawStripRaw (byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const
 
void unkDecode8 (byte *dst, int dstPitch, const byte *src, int height) const
 
void unkDecode9 (byte *dst, int dstPitch, const byte *src, int height) const
 
void unkDecode10 (byte *dst, int dstPitch, const byte *src, int height) const
 
void unkDecode11 (byte *dst, int dstPitch, const byte *src, int height) const
 
void drawStrip3DO (byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const
 
void drawStripHE (byte *dst, int dstPitch, const byte *src, int width, int height, const bool transpCheck) const
 
virtual void writeRoomColor (byte *dst, byte color) const
 
void decompressMaskImgOr (byte *dst, const byte *src, int height) const
 
void decompressMaskImg (byte *dst, const byte *src, int height) const
 
int getZPlanes (const byte *smap_ptr, const byte *zplane_list[9], bool bmapImage) const
 
virtual bool drawStrip (byte *dstPtr, VirtScreen *vs, int x, int y, const int width, const int height, int stripnr, const byte *smap_ptr)
 
virtual void decodeMask (int x, int y, const int width, const int height, int stripnr, int numzbuf, const byte *zplane_list[9], bool transpStrip, byte flag)
 
virtual void prepareDrawBitmap (const byte *ptr, VirtScreen *vs, const int x, const int y, const int width, const int height, int stripnr, int numstrip)
 

Protected Attributes

ScummEngine_vm
 
byte _paletteMod
 
byte * _roomPalette
 
byte _transparentColor
 
byte _decomp_shr
 
byte _decomp_mask
 
uint32 _vertStripNextInc
 
bool _zbufferDisabled
 
bool _objectMode
 

Member Data Documentation

◆ _objectMode

bool Scumm::Gdi::_objectMode
protected

Flag which is true when an object is being rendered, false otherwise.

◆ _distaff

bool Scumm::Gdi::_distaff

Flag which is true when loading objects or titles for distaff, in PCEngine version of Loom.


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