Changeset 1918 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 7, 2004, 9:58:07 PM (20 years ago)
- Location:
- orxonox/trunk/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/orxonox.cc
r1917 r1918 256 256 glColor3f(0.0, 0.5, 0.6); 257 257 glLoadIdentity(); 258 gluLookAt(0.0, -14.0, 15.0, 0.0 + alpha, 0.0 + beta, 0.0, 0.0, 1.0, 0.0);258 gluLookAt(0.0, -14.0, 15.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); 259 259 (*world).drawWorld(); 260 260 -
orxonox/trunk/core/world.cc
r1917 r1918 149 149 void World::drawWorld(void) 150 150 { 151 glLoadIdentity(); 152 gluLookAt(0.0, -14.0 + primitiveMove, 15.0, 0.0, 0.0 + primitiveMove, 0.0, 0.0, 1.0, 0.0); 151 153 /* first draw all players */ 152 154 playerList* tmpPlayer = lastPlayer; … … 165 167 } 166 168 167 glPushMatrix(); 168 glTranslatef(0.0, -primitiveMove, 0.0); 169 170 //glPushMatrix(); 171 //glTranslatef(0.0, -primitiveMove, 0.0); 169 172 170 173 /* now draw the rest of the world: environement */ … … 181 184 glBegin(GL_LINES); 182 185 /* for the moment, we've got only pseudo moving ground */ 183 for (int y = 0; y < 60; y += 2)186 for (int y = 0; y < 60; y += 2) 184 187 { 185 188 for (int x = 0; x < 60; x += 2) … … 190 193 } 191 194 glEnd(); 192 195 //glPopMatrix(); 193 196 194 197 glBegin(GL_LINES); … … 204 207 205 208 206 primitiveMove+=0. 1;209 primitiveMove+=0.07; 207 210 } 208 211
Note: See TracChangeset
for help on using the changeset viewer.