Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10092 in orxonox.OLD for branches/playability/src/lib/gui


Ignore:
Timestamp:
Dec 18, 2006, 8:39:38 PM (18 years ago)
Author:
muellmic
Message:

work of last week: radar set-up, Gui- Widget class draws itself according to Dir of 2d- element.

Location:
branches/playability/src/lib/gui/gl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/lib/gui/gl/glgui_widget.cc

    r9869 r10092  
    915915  }
    916916
     917  void GLGuiWidget::beginDraw() const
     918  {
     919    glPushMatrix();
     920    glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0);
     921    glRotatef(this->getAbsDir2D(), 0, 0, 1);
     922  }
     923
    917924
    918925}
  • branches/playability/src/lib/gui/gl/glgui_widget.h

    r9869 r10092  
    244244
    245245    /// RENDERING
    246     inline void beginDraw() const { glPushMatrix(); glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0); };
     246    void beginDraw() const;
    247247    inline void endDraw() const { glPopMatrix(); };
    248248
Note: See TracChangeset for help on using the changeset viewer.