Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 17, 2006, 1:49:05 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Element2D uses Vector2D instead of Vector whenever possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/effects/lense_flare.cc

    r7221 r7316  
    212212
    213213  // always update the screen center, it could be, that the window is resized
    214   this->screenCenter = Vector(State::getResX()/2.0f, State::getResY()/2.0f, 0.0f);
     214  this->screenCenter = Vector2D(State::getResX()/2.0f, State::getResY()/2.0f);
    215215
    216216  // flare vector is the direction from the center to the light source
    217217  this->flareVector = this->flares[0]->getAbsCoor2D() - this->screenCenter;
    218   this->flareVector.z = 0.0f;
    219218  this->distance = this->flareVector.len();
    220219  this->flareVector.normalize();
Note: See TracChangeset for help on using the changeset viewer.