Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8994 in orxonox.OLD for trunk/src/world_entities


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

compiling radar

Location:
trunk/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.