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
RevLine 
[4744]1/*
[1853]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.
[1855]10
11   ### File Specific:
[6437]12   main-programmer: Benjamin Grauer
[1855]13   co-programmer: ...
[1853]14*/
15
[3955]16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
[1853]17
[6437]18#include "hud.h"
[1853]19
[1856]20using namespace std;
[1853]21
[1856]22
[3245]23/**
[4838]24 * standard constructor
25 * @todo this constructor is not jet implemented - do it
[3245]26*/
[6437]27Hud::Hud ()
[3365]28{
[6438]29  this->setClassID(CL_HUD, "Hud");
[4320]30
[6440]31
32  this->energyWidget = NULL;
33  this->shieldWidget = NULL;
34  this->armorWidget = NULL;
[3365]35}
[1853]36
37
[3245]38/**
[4838]39 * standard deconstructor
[3245]40*/
[6437]41Hud::~Hud ()
[3543]42{
43  // delete what has to be deleted here
44}
[6438]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{
[6440]59  // decopple old widget
60  if (this->energyWidget != NULL)
61  {
62    this->energyWidget->hide();
63  }
[6438]64
[6440]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
[6438]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.