Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8994 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jul 2, 2006, 5:38:44 AM (18 years ago)
Author:
bensch
Message:

compiling radar

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.cc

    r8990 r8994  
    2626#include "glgui_inputline.h"
    2727#include "specials/glgui_notifier.h"
     28#include "elements/glgui_radar.h"
    2829
    2930/**
     
    4950  notifier->setAbsCoor2D(100,100);
    5051
     52  this->radar = new OrxGui::GLGuiRadar();
     53
    5154  this->subscribeEvent(ES_ALL, EV_VIDEO_RESIZE);
    5255
     
    6265  delete this->inputLine;
    6366  delete this->notifier;
     67
     68  delete this->radar;
    6469  // delete what has to be deleted here
    6570}
  • trunk/src/util/hud.h

    r8990 r8994  
    99#include "element_2d.h"
    1010#include "event_listener.h"
     11
     12
    1113// FORWARD DECLARATION
    12 class TiXmlElement;
    13 
    1414class WeaponManager;
    1515namespace OrxGui {
     
    1717  class GLGuiNotifier;
    1818  class GLGuiInputLine;
    19 
     19  class GLGuiRadar;
    2020}
    2121
     
    6262  OrxGui::GLGuiNotifier*   notifier;
    6363  OrxGui::GLGuiInputLine*  inputLine;
     64  OrxGui::GLGuiRadar*      radar;
    6465
    6566  WeaponManager*           weaponManager;
  • trunk/src/world_entities/Makefile.am

    r8991 r8994  
    3232                \
    3333                \
    34                 elements/glgui_energywidget.cc \
    35                 elements/glgui_radar.cc
    36 
     34                elements/glgui_energywidget.cc
    3735
    3836
     
    6664                \
    6765                elements/glgui_energywidget.h \
    68                 elements/glgui_radar.h \
    6966                \
    7067                \
  • trunk/src/world_entities/WorldEntities.am

    r8894 r8994  
    5656                world_entities/elements/image_entity.cc \
    5757                world_entities/elements/text_element.cc \
     58                world_entities/elements/glgui_radar.cc \
    5859                \
    5960                world_entities/effects/lightning_bolt.cc \
     
    115116                elements/image_entity.h \
    116117                elements/text_element.h \
     118                elements/glgui_radar.h \
    117119                \
    118120                effects/lightning_bolt.h \
  • trunk/src/world_entities/elements/glgui_radar.cc

    r8993 r8994  
    115115  void GLGuiRadar::draw() const
    116116  {
     117    this->beginDraw();
     118    GLGuiWidget::draw();
     119
    117120    for (unsigned int i = 0; i < this->_dotLists.size(); ++i)
    118121    {
     122      glColor4fv(&_dotLists[i].dotColor[0]);
    119123      for (unsigned int j = 0; j < this->_dotLists[i].positions.size(); ++j)
    120124      {
     125        glBegin(GL_POINTS);
     126
     127        glVertex2f(this->_dotLists[i].positions[i].x, this->_dotLists[i].positions[i].y);
     128
     129        glEnd();
    121130      }
    122131    }
     132
     133    this->endDraw();
    123134  }
    124135
Note: See TracChangeset for help on using the changeset viewer.