Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Graphics Namespace Reference


Compounds

class  Graphics::AbstractImage
class  Graphics::AnimatedImage
class  Graphics::Drawable
class  Graphics::DrawableAt
class  Graphics::ImageFrame
class  Graphics::ImageManager
class  Graphics::ReadImage
class  Graphics::SingleFrameImage

Functions

AbstractImage * dynGenerateImage (const string &filename)
Uint32 getpixel (SDL_Surface *surface, int x, int y)
void putpixel (SDL_Surface *surface, int x, int y, Uint32 pixel)


Function Documentation

Uint8 Graphics::calcBlueComp (  SDL_PixelFormat *    format,
Uint32    pixel
) 
 

Definition at line 297 of file draw.cpp.

Uint8 Graphics::calcGreenComp (  SDL_PixelFormat *    format,
Uint32    pixel
) 
 

Definition at line 290 of file draw.cpp.

Uint8 Graphics::calcRedComp (  SDL_PixelFormat *    format,
Uint32    pixel
) 
 

Definition at line 283 of file draw.cpp.

Graphics::AbstractImage * Graphics::dynGenerateImage (  const string &    filename ) 
 

Reads a filename, and creates an instance of the appriopriate AbstractImage subclass based on the filename's extension. List of extension/class pairs thus far

Parameters:
filename  name of file
Exceptions:
exception  thrown when the extension is not in the above list
Returns:
dynically allocated AbstractImage* to appriopriate subclass

Definition at line 196 of file draw.cpp.

Uint32 Graphics::getpixel (  SDL_Surface *    surface,
int    x,
int    y
) 
 

NOTE: The surface must be locked before calling this!

Returns:
the pixel value at (x, y)

Definition at line 247 of file draw.cpp.

Uint32 Graphics::makeTopLeftPixelTrans (  SDL_Surface *    lpSurface ) 
 

Definition at line 274 of file draw.cpp.

void Graphics::putpixel (  SDL_Surface *    surface,
int    x,
int    y,
Uint32    pixel
) 
 

NOTE: The surface must be locked before calling this! Set the pixel at (x, y) to the given value

Definition at line 214 of file draw.cpp.


Generated on Tue May 21 07:26:55 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001