Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10467 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 28, 2007, 10:33:52 PM (18 years ago)
Author:
patrick
Message:

better implementation, scalable in both dim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/scrolling_screen.cc

    r10466 r10467  
    201201  }
    202202
    203   float dx;
     203  float borderTex = this->offset + ratio;
    204204  // we are above/below
    205205  if( 1 - (offset + ratio) < 0)
    206206  {
    207 
     207    borderTex = 1.0;
    208208  }
    209209
    210210  glBegin(GL_QUADS);
    211211    // unten links
    212     glTexCoord2f(0., this->offset + ratio);
     212    glTexCoord2f(0., borderTex);
    213213    glVertex3f(0., -x*0.5, -y*0.5);
    214214
    215215    // unten rechts
    216     glTexCoord2f(1., this->offset + ratio);
     216    glTexCoord2f(1., borderTex);
    217217    glVertex3f(0., -x*0.5, y*0.5);
    218218
Note: See TracChangeset for help on using the changeset viewer.