- Timestamp:
- Jul 2, 2006, 5:38:44 AM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r8990 r8994 26 26 #include "glgui_inputline.h" 27 27 #include "specials/glgui_notifier.h" 28 #include "elements/glgui_radar.h" 28 29 29 30 /** … … 49 50 notifier->setAbsCoor2D(100,100); 50 51 52 this->radar = new OrxGui::GLGuiRadar(); 53 51 54 this->subscribeEvent(ES_ALL, EV_VIDEO_RESIZE); 52 55 … … 62 65 delete this->inputLine; 63 66 delete this->notifier; 67 68 delete this->radar; 64 69 // delete what has to be deleted here 65 70 } -
trunk/src/util/hud.h
r8990 r8994 9 9 #include "element_2d.h" 10 10 #include "event_listener.h" 11 12 11 13 // FORWARD DECLARATION 12 class TiXmlElement;13 14 14 class WeaponManager; 15 15 namespace OrxGui { … … 17 17 class GLGuiNotifier; 18 18 class GLGuiInputLine; 19 19 class GLGuiRadar; 20 20 } 21 21 … … 62 62 OrxGui::GLGuiNotifier* notifier; 63 63 OrxGui::GLGuiInputLine* inputLine; 64 OrxGui::GLGuiRadar* radar; 64 65 65 66 WeaponManager* weaponManager; -
trunk/src/world_entities/Makefile.am
r8991 r8994 32 32 \ 33 33 \ 34 elements/glgui_energywidget.cc \ 35 elements/glgui_radar.cc 36 34 elements/glgui_energywidget.cc 37 35 38 36 … … 66 64 \ 67 65 elements/glgui_energywidget.h \ 68 elements/glgui_radar.h \69 66 \ 70 67 \ -
trunk/src/world_entities/WorldEntities.am
r8894 r8994 56 56 world_entities/elements/image_entity.cc \ 57 57 world_entities/elements/text_element.cc \ 58 world_entities/elements/glgui_radar.cc \ 58 59 \ 59 60 world_entities/effects/lightning_bolt.cc \ … … 115 116 elements/image_entity.h \ 116 117 elements/text_element.h \ 118 elements/glgui_radar.h \ 117 119 \ 118 120 effects/lightning_bolt.h \ -
trunk/src/world_entities/elements/glgui_radar.cc
r8993 r8994 115 115 void GLGuiRadar::draw() const 116 116 { 117 this->beginDraw(); 118 GLGuiWidget::draw(); 119 117 120 for (unsigned int i = 0; i < this->_dotLists.size(); ++i) 118 121 { 122 glColor4fv(&_dotLists[i].dotColor[0]); 119 123 for (unsigned int j = 0; j < this->_dotLists[i].positions.size(); ++j) 120 124 { 125 glBegin(GL_POINTS); 126 127 glVertex2f(this->_dotLists[i].positions[i].x, this->_dotLists[i].positions[i].y); 128 129 glEnd(); 121 130 } 122 131 } 132 133 this->endDraw(); 123 134 } 124 135
Note: See TracChangeset
for help on using the changeset viewer.