#include <HudMenu.h>

Public Member Functions | |
| HudMenu (Game *game) | |
| Constructor. | |
| HudMenu (const HudMenu &source) | |
| Copy Constructor. | |
| ~HudMenu () | |
| Destructor. | |
| void | renderGl () |
| The rendering function to be used with OpenGL. | |
| void | selectGl () |
| The selection mode rendering function for OpenGL. | |
| void | processEvent (SDL_Event &event) |
| Method to handle events from SDL. | |
| void | clicked () |
| Close menu after click. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
Private Attributes | |
| Game * | game |
| vector< Button > | buttons |
| List of buttons to draw. | |
| GLfloat | width |
| menu's background width | |
| GLfloat | height |
| menu's background height | |
| Texture | background |
| background texture | |
| bool | visible |
| visibility toggle | |
Displays several Options
| HudMenu::HudMenu | ( | Game * | game | ) |
Constructor.
Standard Constructor
| HudMenu::HudMenu | ( | const HudMenu & | menu | ) |
Copy Constructor.
Copy Constructor
| HudMenu::~HudMenu | ( | ) |
Destructor.
Destructor
| void HudMenu::renderGl | ( | ) | [virtual] |
| void HudMenu::selectGl | ( | ) | [virtual] |
The selection mode rendering function for OpenGL.
Renders the menu for an OpenGL selection pass
Implements Object2d.
| void HudMenu::processEvent | ( | SDL_Event & | event | ) | [virtual] |
Method to handle events from SDL.
| event | The SDL Event to be evaluated |
Implements EventListener.
| void HudMenu::clicked | ( | ) | [virtual] |
| string HudMenu::toString | ( | ) | const [virtual] |
Returns a textual representation.
Implements ButtonListener.
| string HudMenu::className | ( | ) | const [virtual] |
Returns the class name of the object.
Implements ButtonListener.
| enum classId HudMenu::classId | ( | ) | const [virtual] |
Game* HudMenu::game [private] |
vector<Button> HudMenu::buttons [private] |
List of buttons to draw.
GLfloat HudMenu::width [private] |
menu's background width
GLfloat HudMenu::height [private] |
menu's background height
Texture HudMenu::background [private] |
background texture
bool HudMenu::visible [private] |
visibility toggle
1.5.6