ScummVM API documentation
Parallaction::Gfx Class Reference

Classes

struct  Label
 

Public Member Functions

void beginFrame ()
 
void addObjectToScene (GfxObj *obj)
 
GfxObjloadAnim (const char *name)
 
GfxObjloadGet (const char *name)
 
GfxObjloadDoor (const char *name)
 
GfxObjloadCharacterAnim (const char *name)
 
void sortScene ()
 
void freeCharacterObjects ()
 
void freeLocationObjects ()
 
void showGfxObj (GfxObj *obj, bool visible)
 
void blt (const Common::Rect &r, byte *data, Graphics::Surface *surf, uint16 z, uint scale, byte transparentColor)
 
void unpackBlt (const Common::Rect &r, byte *data, uint size, Graphics::Surface *surf, uint16 z, uint scale, byte transparentColor)
 
void showFloatingLabel (GfxObj *label)
 
void hideFloatingLabel ()
 
GfxObjrenderFloatingLabel (Font *font, char *text)
 
GfxObjcreateLabel (Font *font, const char *text, byte color)
 
void showLabel (GfxObj *label, int16 x, int16 y)
 
void hideLabel (GfxObj *label)
 
void freeLabels ()
 
void unregisterLabel (GfxObj *label)
 
GfxObjregisterBalloon (Frames *frames, const char *text)
 
int setItem (GfxObj *obj, uint16 x, uint16 y, byte transparentColor=0)
 
void setItemFrame (uint item, uint16 f)
 
void freeDialogueObjects ()
 
void setBackground (uint type, BackgroundInfo *info)
 
void patchBackground (Graphics::Surface &surf, int16 x, int16 y, bool mask=false)
 
void grabBackground (const Common::Rect &r, Graphics::Surface &dst)
 
void fillBackground (const Common::Rect &r, byte color)
 
void invertBackground (const Common::Rect &r)
 
void setPalette (Palette &palette)
 
void setBlackPalette ()
 
void animatePalette ()
 
void applyHalfbriteEffect_NS (Graphics::Surface &surf)
 
void setHalfbriteMode (bool enable)
 
void setProjectorPos (int x, int y)
 
void setProjectorProgram (int16 *data)
 
void initiateScroll (int deltaX, int deltaY)
 
void setScrollPosX (int scrollX)
 
void setScrollPosY (int scrollY)
 
void getScrollPos (Common::Point &p)
 
 Gfx (Parallaction *vm)
 
void clearScreen ()
 
void updateScreen ()
 

Public Attributes

Disk_disk
 
GfxObjArray _sceneObjects
 
BackgroundInfo_backgroundInfo
 
int16 * _nextProjectorPos
 
Palette _palette
 
byte * _unpackedBitmap
 

Protected Member Functions

void resetSceneDrawList ()
 
Graphics::SurfacelockScreen ()
 
void unlockScreen ()
 
void updateScreenIntern ()
 
void copyRectToScreen (const byte *buf, int pitch, int x, int y, int w, int h)
 
void scroll ()
 
void drawOverlay (Graphics::Surface &surf)
 
void drawInventory ()
 
void drawList (Graphics::Surface &surface, GfxObjArray &list)
 
void updateFloatingLabel ()
 
void copyRect (const Common::Rect &r, Graphics::Surface &src, Graphics::Surface &dst)
 
void drawText (Font *font, Graphics::Surface *surf, uint16 x, uint16 y, const char *text, byte color)
 
void drawGfxObject (GfxObj *obj, Graphics::Surface &surf)
 
void bltMaskScale (const Common::Rect &r, byte *data, Graphics::Surface *surf, uint16 z, uint scale, byte transparentColor)
 
void bltMaskNoScale (const Common::Rect &r, byte *data, Graphics::Surface *surf, uint16 z, byte transparentColor)
 
void bltNoMaskNoScale (const Common::Rect &r, byte *data, Graphics::Surface *surf, byte transparentColor)
 

Protected Attributes

Parallaction_vm
 
bool _halfbrite
 
Common::Point _hbCirclePos
 
int _hbCircleRadius
 
Palette _backupPal
 
bool _doubleBuffering
 
int _gameType
 
Graphics::Surface _backBuffer
 
int _scrollPosX
 
int _scrollPosY
 
int _minScrollX
 
int _maxScrollX
 
int _minScrollY
 
int _maxScrollY
 
uint32 _requestedHScrollSteps
 
uint32 _requestedVScrollSteps
 
int32 _requestedHScrollDir
 
int32 _requestedVScrollDir
 
GfxObjArray _labels
 
GfxObjArray _balloons
 
GfxObjArray _items
 
GfxObj_floatingLabel
 
bool _overlayMode
 

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