Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5396 in orxonox.OLD


Ignore:
Timestamp:
Oct 17, 2005, 10:31:00 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed a BUG in the Element2D-class preventing the BindNode to functionate correctly

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r5382 r5396  
    686686                 projectPos+1,
    687687                 projectPos+2);
    688       this->absCoordinate.x = projectPos[0]/(float)GraphicsEngine::getInstance()->getResolutionX() + this->relCoordinate.x;
    689       this->absCoordinate.y = projectPos[1]/(float)GraphicsEngine::getInstance()->getResolutionY() + this->relCoordinate.y;
    690       this->absCoordinate.z = projectPos[2] + this->relCoordinate.z;
     688      this->prevRelCoordinate.x = this->absCoordinate.x = projectPos[0] /* /(float)GraphicsEngine::getInstance()->getResolutionX() */ + this->relCoordinate.x;
     689      this->prevRelCoordinate.y = this->absCoordinate.y = (float)GraphicsEngine::getInstance()->getResolutionY() -  projectPos[1] + this->relCoordinate.y;
     690      this->prevRelCoordinate.z = this->absCoordinate.z = projectPos[2] + this->relCoordinate.z;
     691      this->bRelCoorChanged = true;
    691692    }
    692693    else
  • trunk/src/lib/gui/gl_gui/glgui_pushbutton.cc

    r5395 r5396  
    5555{
    5656  this->label->draw();
    57 
    5857}
    5958
  • trunk/src/world_entities/player.cc

    r5395 r5396  
    150150  button->show();
    151151  button->setLabel("test");
    152 //  button->setBindNode(this);
    153   button->setRelCoor2D(500, 20);
     152  button->setBindNode(this);
    154153
    155154  this->weaponMan = new WeaponManager(this);
  • trunk/src/world_entities/weapons/crosshair.cc

    r5378 r5396  
    6767  this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0);
    6868
    69   this->setBindNode(this);
     69//  this->setBindNode(this);
    7070  this->material = new Material;
    7171
Note: See TracChangeset for help on using the changeset viewer.