Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

much better now

File:
1 edited

Legend:

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

    r10464 r10465  
    191191
    192192    // unten links
    193     glTexCoord2f(0., 1.);
     193    glTexCoord2f(0., this->offset + ratio);
    194194    glVertex3f(0., -view*0.5, -this->ySize*0.5);
    195195
    196196    // unten rechts
    197     glTexCoord2f(ratio, 1.);
     197    glTexCoord2f(1., this->offset + ratio);
    198198    glVertex3f(0., -view*0.5, this->ySize*0.5);
    199199
    200200    // oben rechts
    201     glTexCoord2f(ratio, 0.);
     201    glTexCoord2f(1., this->offset);
    202202    glVertex3f(0., view*0.5, this->ySize*0.5);
    203203
    204204    // oben links
    205     glTexCoord2f(0., 0.);
     205    glTexCoord2f(0., this->offset);
    206206    glVertex3f(0., view*0.5, -this->ySize*0.5);
    207207
Note: See TracChangeset for help on using the changeset viewer.