ScummVM API documentation
Bagel::CBagPanBitmap Class Reference
Inheritance diagram for Bagel::CBagPanBitmap:
Bagel::CBofBitmap Bagel::CBofError Bagel::CBofObject Bagel::CCache Bagel::CLList

Public Types

enum  Direction {
  kDirNONE = 0x0, kDirUP = 0x01, kDirDOWN = 0x02, kDirLEFT = 0x04,
  kDirRIGHT = 0x08, kDirVIEW = 0x10
}
 

Public Member Functions

 CBagPanBitmap (const char *pszFileName, CBofPalette *pPalette, const CBofRect &xViewSize=CBofRect())
 
bool isValid () const
 
bool isPan () const
 
ErrorCode paint (CBofBitmap *pBmp, CBofPoint xDstOffset=CBofPoint(0, 0))
 
ErrorCode paintUncorrected (CBofBitmap *pBmp, CBofRect &dstRect)
 
ErrorCode paintWarped (CBofBitmap *pBmp, const CBofRect &dstRect, const CBofRect &srcRect, int offset=0, CBofBitmap *pSrcBmp=nullptr, const CBofRect &preSrcRect=CBofRect())
 
CBofRect getWarpSrcRect ()
 
CBofPoint warpedPoint (CBofPoint &xPoint)
 
const CBofRect getMaxView (CBofSize s=CBofSize(640, 480))
 
void setCorrWidth (int nWidth, bool bUpdate=true)
 
void rotateRight (int nXRotRate=0)
 
void rotateLeft (int nXRotRate=0)
 
void rotateUp (int nYRotRate=0)
 
void rotateDown (int nYRotRate=0)
 
Direction updateView ()
 
void setCurrView (const CBofRect &xCurrView)
 
void offsetCurrView (const CBofPoint &xOffset)
 
void setFOV (double degrees, bool bUpdate=true)
 
void setViewSize (const CBofSize &xViewSize, bool bUpdate=true)
 
CBofSize setUnityViewSize ()
 
double setUnityFOV ()
 
double getFOV () const
 
const CBofSize getViewSize () const
 
const CBofRect getCurrView () const
 
Direction getDirection () const
 
void setRotateRate (const CBofPoint &xRotRate)
 
void setDirection (const Direction xDirection)
 
int getCorrWidth ()
 
void activateScrolling (bool val=true)
 
void deActivateScrolling ()
 
- Public Member Functions inherited from Bagel::CBofBitmap
 CBofBitmap ()
 
 CBofBitmap (int dx, int dy, CBofPalette *pPalette, bool bOwnPalette=false, byte *pPrivateBuff=nullptr)
 
 CBofBitmap (const char *pszFileName, CBofPalette *pPalette=nullptr, bool bOwnPalette=false)
 
virtual ~CBofBitmap ()
 
ErrorCode buildBitmap (CBofPalette *pPalette)
 
ErrorCode loadBitmap (const char *pszFileName, CBofPalette *pPalette)
 
void releaseBitmap ()
 
void setPalette (CBofPalette *pPalette, bool bOwnPalette=false)
 
CBofPalettegetPalette ()
 
void setIsOwnPalette (bool own)
 
byte * getPixelAddress (int x, int y)
 
byte * getPixelAddress (CBofPoint *pPoint)
 
CBofSize getSize ()
 
CBofRect getRect ()
 
void setReadOnly (bool bReadOnly)
 
bool getReadOnly ()
 
bool isTopDown ()
 
int width ()
 
int widthBytes ()
 
int height ()
 
 operator Graphics::ManagedSurface & ()
 
Graphics::ManagedSurface getSurface ()
 
const char * getFileName ()
 
ErrorCode paint (CBofWindow *pWnd, int x, int y, CBofRect *pSrcRect=nullptr, int nMaskColor=-1)
 
ErrorCode paint (CBofWindow *pWnd, CBofRect *pDstRect=nullptr, CBofRect *pSrcRect=nullptr, int nMaskColor=-1)
 
ErrorCode paintMaskBackdrop (CBofWindow *pWnd, CBofRect *pDstRect=nullptr, CBofRect *pSrcRect=nullptr, int nMaskColor=-1)
 
ErrorCode paint (CBofBitmap *pBmp, int x, int y, CBofRect *pSrcRect=nullptr, int nMaskColor=-1)
 
ErrorCode paint (CBofBitmap *pBmp, CBofRect *pDstRect=nullptr, CBofRect *pSrcRect=nullptr, int nMaskColor=-1)
 
ErrorCode paintStretch4 (CBofBitmap *pBmp, CBofRect *pDstRect, CBofRect *pSrcRect)
 The Destination rectangle MUST be divisible by 4. Both bitmaps must be Bottom-Up. The Source must be smaller than the Destination. More...
 
ErrorCode paintStretchOpt (CBofBitmap *pBmp, CBofRect *pDstRect, CBofRect *pSrcRect, int nOptSize)
 
ErrorCode paint1To1 (CBofBitmap *pBmp)
 
ErrorCode captureScreen (CBofWindow *pWnd, CBofRect *pSrcRect, CBofRect *pDstRect=nullptr)
 
ErrorCode fadeIn (CBofWindow *pWnd, int x=0, int y=0, int nMaskColor=-1, int nBlockSize=4, int nSpeed=10)
 
ErrorCode curtain (CBofWindow *pWnd, int nSpeed=8, int nMaskColor=-1)
 
ErrorCode fadeLines (CBofWindow *pWnd, int nSpeed=32, int nMaskColor=-1)
 
byte readPixel (int x, int y)
 
void writePixel (int x, int y, byte iColor)
 
void circle (int x, int y, uint16 nRadius, byte iColor)
 
void line (int nSrcX, int nSrcY, int nDstX, int nDstY, byte iColor)
 
void line (CBofPoint *pSrc, CBofPoint *pDest, byte iColor)
 
void drawRect (CBofRect *cRect, byte iColor)
 
void fillRect (CBofRect *cRect, byte iColor)
 
ErrorCode scrollRight (int nPixels, CBofRect *pRect=nullptr)
 
ErrorCode scrollLeft (int nPixels, CBofRect *pRect=nullptr)
 
ErrorCode scrollUp (int nPixels)
 
- Public Member Functions inherited from Bagel::CBofError
void reportError (ErrorCode errCode, const char *format,...)
 
bool errorOccurred () const
 
ErrorCode getErrorCode () const
 
void clearError ()
 
- Public Member Functions inherited from Bagel::CCache
 CCache ()
 
virtual ~CCache ()
 
void load ()
 
bool release ()
 
void lock ()
 
void unlock ()
 
bool isLocked ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Bagel::CBofBitmap
static void setUseBackdrop (bool b)
 
static bool getUseBackdrop ()
 
- Static Public Member Functions inherited from Bagel::CBofError
static void fatalError (ErrorCode errCode, const char *format,...)
 
static void initialize ()
 
static int getErrorCount ()
 
- Static Public Member Functions inherited from Bagel::CBofObject
static bool isValidObject (const CBofObject *pObject)
 
- Static Public Member Functions inherited from Bagel::CCache
static void initialize ()
 
static bool flush ()
 
static bool optimize (uint32 lRequestedFreeSpace)
 
- Protected Member Functions inherited from Bagel::CBofBitmap
bool alloc () override
 
void free () override
 
- Protected Member Functions inherited from Bagel::CBofError
virtual void bofMessageBox (const Common::String &content, const Common::String &title)
 
- Protected Attributes inherited from Bagel::CBofBitmap
char _szFileName [MAX_FNAME]
 
Graphics::ManagedSurface _bitmap
 
byte * _pBits = nullptr
 
CBofPalette_pPalette = nullptr
 
int _nScanDX = 0
 
int _nDX = 0
 
int _nDY = 0
 
bool _bTopDown = false
 
bool _bOwnPalette = false
 
bool _bReadOnly = false
 
bool _bInitialized = false
 
- Protected Attributes inherited from Bagel::CBofError
ErrorCode _errCode
 
- Static Protected Attributes inherited from Bagel::CBofBitmap
static bool _bUseBackdrop
 
- Static Protected Attributes inherited from Bagel::CBofError
static int _count
 

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