Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

CSPictureData Class Reference

#include <CSPicture.h>


Detailed Description

Data class that is used for loading a loadable class. First the data is loaded via xml into this "DATA"-class. From this data - the actual picture is created. The data can be reused to create another instance of a picture class - though probably not needed...

Definition at line 50 of file CSPicture.h.

Public Member Functions

 CSPictureData ()
 ~CSPictureData ()

Data Fields

SDL_Rect position
 has position and size

char * id
char * filename
 of bitmap file

int rleUse
int alpha


Constructor & Destructor Documentation

CSPictureData::CSPictureData  )  [inline]
 

Definition at line 60 of file CSPicture.h.

References alpha, position, RLE_PERHAPS, and rleUse.

00061         {
00062             rleUse = RLE_PERHAPS;
00063             id = 0;
00064             filename = 0;
00065             position.x=0;
00066             position.y=0;
00067             position.w=0;
00068             position.h=0;
00069             alpha = -1;
00070         }

CSPictureData::~CSPictureData  )  [inline]
 

Definition at line 72 of file CSPicture.h.

00073         {
00074             if (id != 0) 
00075             {
00076                 free(id);
00077                 id = 0;
00078             }
00079             if (filename != 0) 
00080             {
00081                 free(filename);
00082                 filename = 0;
00083             }
00084         }


Field Documentation

SDL_Rect CSPictureData::position
 

has position and size

Definition at line 54 of file CSPicture.h.

Referenced by CSPictureData().

char* CSPictureData::id
 

Definition at line 55 of file CSPicture.h.

char* CSPictureData::filename
 

of bitmap file

Definition at line 56 of file CSPicture.h.

int CSPictureData::rleUse
 

Definition at line 57 of file CSPicture.h.

Referenced by CSPictureData().

int CSPictureData::alpha
 

Definition at line 58 of file CSPicture.h.

Referenced by CSPictureData().


Generated on Wed Jul 14 00:44:58 2004 for CSLib by doxygen 1.3.6