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

CBitmapPBM Class Reference

List of all members.

Public Member Functions

 CBitmapPBM (const char *pbmFilename=NULL)
 ~CBitmapPBM (void)
void Load (PODFILE *pbm, PODFILE *act)
void GetSize (int *x_size, int *y_size)
void Draw (SSurface *surface, int x, int y)
void DrawPartial (SSurface *surface, int x, int y, int x1, int y1, int x2, int y2)

Protected Attributes

char pbmFilename [64]
RGBpalette
GLubyte * image
int width
int height

Detailed Description

Definition at line 380 of file Bitmaps.cpp.


Constructor & Destructor Documentation

CBitmapPBM::CBitmapPBM const char *  pbmFilename = NULL  ) 
 

Definition at line 399 of file Bitmaps.cpp.

References globals, gtfo, height, image, Load(), pbmFilename, pclose(), SGlobals::pfs, popen(), and width.

CBitmapPBM::~CBitmapPBM void   ) 
 

Definition at line 435 of file Bitmaps.cpp.

References image, and palette.


Member Function Documentation

void CBitmapPBM::Draw SSurface surface,
int  x,
int  y
 

Todo:
Support clipping of the drawn bitmap by the surface edges

Definition at line 542 of file Bitmaps.cpp.

References RGB::b, SSurface::drawBuffer, RGB::g, height, image, MakeRGBA(), palette, pbmFilename, RGB::r, WARNINGLOG, width, SSurface::xSize, SSurface::xSpan, and SSurface::ySize.

Referenced by CBitmapPBG::Draw().

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

Todo:
Support clipping of the drawn bitmap by the surface edges

Definition at line 589 of file Bitmaps.cpp.

References RGB::b, SSurface::drawBuffer, RGB::g, image, MakeRGBA(), palette, RGB::r, width, SSurface::xSize, SSurface::xSpan, and SSurface::ySize.

Referenced by CBitmapPBG::DrawPartial().

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

Definition at line 441 of file Bitmaps.cpp.

References height, and width.

void CBitmapPBM::Load PODFILE pbm,
PODFILE act
 

Definition at line 447 of file Bitmaps.cpp.

References PODFILE::filename, gtfo, SPBMHeader::height, height, image, SPBMHeader::magic, palette, pread(), SPBMHeader::width, and width.

Referenced by CBitmapPBM(), and CBitmapPBG::Load().


Member Data Documentation

int CBitmapPBM::height [protected]
 

Definition at line 395 of file Bitmaps.cpp.

Referenced by CBitmapPBM(), Draw(), GetSize(), and Load().

GLubyte* CBitmapPBM::image [protected]
 

Definition at line 394 of file Bitmaps.cpp.

Referenced by CBitmapPBM(), Draw(), DrawPartial(), Load(), and ~CBitmapPBM().

RGB* CBitmapPBM::palette [protected]
 

Definition at line 393 of file Bitmaps.cpp.

Referenced by Draw(), DrawPartial(), Load(), and ~CBitmapPBM().

char CBitmapPBM::pbmFilename[64] [protected]
 

Definition at line 392 of file Bitmaps.cpp.

Referenced by CBitmapPBM(), and Draw().

int CBitmapPBM::width [protected]
 

Definition at line 395 of file Bitmaps.cpp.

Referenced by CBitmapPBM(), Draw(), DrawPartial(), GetSize(), and Load().


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