#include <HudBase.h>
Inheritance diagram for HudBase:
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 |
|
|
|
|
|
deletes all the textures |
|
draw Implemented in Hud, HudChat, HudMessage, HudMoney, HudOptions, and InventoryScreen. |
|
switch back to 3d drawing mode |
|
convert and SDL surface to a GL texture |
|
check if the texture is power of 2 |
|
switch to 2d drawing mode |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|