Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CBitmapPBG Class Reference

List of all members.

Public Member Functions

 CBitmapPBG (const char *pbgFilename)
 ~CBitmapPBG (void)
void Load (PODFILE *pbm, PODFILE *act)
void GetSize (int *x_size, int *y_size)
int GetNumFrames (void)
void Draw (SSurface *surface, int x, int y, int frame)
void DrawPartial (SSurface *surface, int x, int y, int x1, int y1, int x2, int y2, int frame)

Protected Attributes

int nFrames
 Number of frames.
vector< CBitmapPBM * > pbm
 List of CBitmapPBM*, one for each frame.

Detailed Description

Definition at line 639 of file Bitmaps.cpp.


Constructor & Destructor Documentation

CBitmapPBG::CBitmapPBG const char *  pbgFilename  ) 
 

Definition at line 658 of file Bitmaps.cpp.

References globals, gtfo, Load(), nFrames, pclose(), SGlobals::pfs, and popen().

CBitmapPBG::~CBitmapPBG void   ) 
 

Definition at line 687 of file Bitmaps.cpp.

References pbm.


Member Function Documentation

void CBitmapPBG::Draw SSurface surface,
int  x,
int  y,
int  frame
 

Definition at line 742 of file Bitmaps.cpp.

References CBitmapPBM::Draw(), nFrames, and pbm.

void CBitmapPBG::DrawPartial SSurface surface,
int  x,
int  y,
int  x1,
int  y1,
int  x2,
int  y2,
int  frame
 

Definition at line 750 of file Bitmaps.cpp.

References CBitmapPBM::DrawPartial(), nFrames, and pbm.

int CBitmapPBG::GetNumFrames void   ) 
 

Definition at line 696 of file Bitmaps.cpp.

References nFrames.

void CBitmapPBG::GetSize int *  x_size,
int *  y_size
 

Definition at line 729 of file Bitmaps.cpp.

References pbm.

void CBitmapPBG::Load PODFILE pbm,
PODFILE act
 

Definition at line 706 of file Bitmaps.cpp.

References PODFILE::filename, gtfo, CBitmapPBM::Load(), SPBGHeader::magic, SPBGHeader::nFrames, nFrames, pbm, pread(), and prewind().

Referenced by CBitmapPBG().


Member Data Documentation

int CBitmapPBG::nFrames [protected]
 

Definition at line 654 of file Bitmaps.cpp.

Referenced by CBitmapPBG(), Draw(), DrawPartial(), GetNumFrames(), and Load().

vector<CBitmapPBM*> CBitmapPBG::pbm [protected]
 

Definition at line 655 of file Bitmaps.cpp.

Referenced by Draw(), DrawPartial(), GetSize(), Load(), and ~CBitmapPBG().


The documentation for this class was generated from the following file:
SourceForge.net Logo Documentation generated by doxygen