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

HudBase Class Reference

#include <HudBase.h>

Inheritance diagram for HudBase:

[legend]
List of all members.

Public Methods

 HudBase ()
virtual ~HudBase ()
virtual void draw ()=0
void start2DMode ()
void end2DMode ()
GLuint GLLoadTexture (SDL_Surface *surface, GLfloat *texcoord)
int powerOfTwo (int input)

Protected Methods

void deleteTextures ()

Protected Attributes

TTF_Font * _font
int _width
int _height
GLfloat _coordinates [4]
GLuint _textureList [100]
int _numTextures
double _topPosition
double _leftPosition

Detailed Description

Base class for all hud related displays


Constructor & Destructor Documentation

HudBase::HudBase  
 

HudBase::~HudBase   [virtual]
 


Member Function Documentation

void HudBase::deleteTextures   [protected]
 

deletes all the textures

virtual void HudBase::draw   [pure virtual]
 

draw

Implemented in Hud, HudChat, HudMessage, HudMoney, HudOptions, and InventoryScreen.

void HudBase::end2DMode  
 

switch back to 3d drawing mode

GLuint HudBase::GLLoadTexture SDL_Surface *    surface,
GLfloat *    texcoord
 

convert and SDL surface to a GL texture

int HudBase::powerOfTwo int    input
 

check if the texture is power of 2

void HudBase::start2DMode  
 

switch to 2d drawing mode


Member Data Documentation

GLfloat HudBase::_coordinates[4] [protected]
 

TTF_Font* HudBase::_font [protected]
 

int HudBase::_height [protected]
 

double HudBase::_leftPosition [protected]
 

int HudBase::_numTextures [protected]
 

GLuint HudBase::_textureList[100] [protected]
 

double HudBase::_topPosition [protected]
 

int HudBase::_width [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 21 11:11:10 2004 for naturecalls by doxygen1.2.18