Background Class Reference

#include <Background.h>

Inheritance diagram for Background:

Sprite List of all members.

Public Member Functions

 Background (std::string filename, double depth)
 Background (std::string filename, int width, int height, double depth)
 ~Background ()
void draw ()

Protected Attributes

double _depth

Detailed Description

Definition at line 4 of file Background.h.


Constructor & Destructor Documentation

Background::Background std::string  filename,
double  depth
 

Backgrounds don't register themselves in SPRITES, thus they need to have a destructor that removes them from texture memory, see below

Definition at line 8 of file Background.cpp.

Background::Background std::string  filename,
int  width,
int  height,
double  depth
 

Definition at line 14 of file Background.cpp.

Background::~Background  ) 
 

Definition at line 42 of file Background.cpp.

References Sprite::_hTexture, and glfuncs::instance().


Member Function Documentation

void Background::draw  ) 
 

Definition at line 20 of file Background.cpp.

References Sprite::_coords, _depth, Sprite::_hTexture, Level::getHeight(), Screen::getScreenRect(), Level::getWidth(), Sprite::height(), glfuncs::instance(), Level::instance(), Screen::instance(), and Sprite::width().

Referenced by Level::draw().


Member Data Documentation

double Background::_depth [protected]
 

Definition at line 13 of file Background.h.

Referenced by draw().


The documentation for this class was generated from the following files:
Generated on Fri May 5 00:20:19 2006 for ProjectX by  doxygen 1.4.6-NO