Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Image Class Reference

An image wrapper class. More...

#include <image.h>

Inheritance diagram for Image:

Screen List of all members.

Public Member Functions

 Image (const char *src)
 This takes as an argument, an image file to load.
 ~Image ()
 Frees the loaded image.
void Draw (int x, int y)
 Draw image at (x,y) to screen.

Private Attributes

SDL_Surface * sur
 pointer to image data

Detailed Description

An image wrapper class.


Constructor & Destructor Documentation

Image::Image const char *  src  ) 
 

This takes as an argument, an image file to load.

Image::~Image  ) 
 

Frees the loaded image.


Member Function Documentation

void Image::Draw int  x,
int  y
 

Draw image at (x,y) to screen.


Member Data Documentation

SDL_Surface* Image::sur [private]
 

pointer to image data


The documentation for this class was generated from the following files:
Generated on Sun Mar 20 12:22:07 2005 for The Grid by doxygen 1.3.8