Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/hud.cc @ 6440

Last change on this file since 6440 was 6440, checked in by bensch, 20 years ago

orxonox/trunk: now the Widgets are only rendered within the HUD

File size: 1.5 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Benjamin Grauer
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
17
18#include "hud.h"
19
20using namespace std;
21
22
23/**
24 * standard constructor
25 * @todo this constructor is not jet implemented - do it
26*/
27Hud::Hud ()
28{
29  this->setClassID(CL_HUD, "Hud");
30
31
32  this->energyWidget = NULL;
33  this->shieldWidget = NULL;
34  this->armorWidget = NULL;
35}
36
37
38/**
39 * standard deconstructor
40*/
41Hud::~Hud ()
42{
43  // delete what has to be deleted here
44}
45
46
47void Hud::loadParams(const TiXmlElement* root)
48{
49
50}
51
52void Hud::setBackGround()
53{
54
55}
56
57void Hud::setEnergyWidget(GLGuiWidget* widget)
58{
59  // decopple old widget
60  if (this->energyWidget != NULL)
61  {
62    this->energyWidget->hide();
63  }
64
65  this->energyWidget = widget;
66  if (this->energyWidget != NULL)
67  {
68    this->energyWidget->show();
69    this->energyWidget->setAbsCoor2D(10,80);
70    this->energyWidget->setSize2D(20,300);
71  }
72
73
74}
75
76void Hud::setShiledWidget(GLGuiWidget* widget)
77{
78
79}
80
81void Hud::setArmorWidget(GLGuiWidget* widget)
82{
83
84}
85
86void Hud::addWeaponWidget(GLGuiWidget* widget)
87{
88
89}
90
91void Hud::removeWeaponWidget(GLGuiWidget* widget)
92{
93
94}
95
96void setResolution(unsigned int resX, unsigned int resY);
Note: See TracBrowser for help on using the repository browser.