- Timestamp:
- Jan 28, 2007, 10:33:52 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/scrolling_screen.cc
r10466 r10467 201 201 } 202 202 203 float dx;203 float borderTex = this->offset + ratio; 204 204 // we are above/below 205 205 if( 1 - (offset + ratio) < 0) 206 206 { 207 207 borderTex = 1.0; 208 208 } 209 209 210 210 glBegin(GL_QUADS); 211 211 // unten links 212 glTexCoord2f(0., this->offset + ratio);212 glTexCoord2f(0., borderTex); 213 213 glVertex3f(0., -x*0.5, -y*0.5); 214 214 215 215 // unten rechts 216 glTexCoord2f(1., this->offset + ratio);216 glTexCoord2f(1., borderTex); 217 217 glVertex3f(0., -x*0.5, y*0.5); 218 218
Note: See TracChangeset
for help on using the changeset viewer.