Changeset 5380 in orxonox.OLD for branches/2d-recalc/src/lib/graphics/graphics_engine.cc
- Timestamp:
- Oct 15, 2005, 1:49:17 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2d-recalc/src/lib/graphics/graphics_engine.cc
r5347 r5380 301 301 glMatrixMode(GL_PROJECTION_MATRIX); 302 302 glLoadIdentity(); 303 glViewport(0,0,width,height); 303 glViewport(0,0,width,height); // Reset The Current Viewport 304 304 } 305 305 … … 421 421 glLoadIdentity(); 422 422 423 glOrtho(0.0, (GLdouble)screen->w, (GLdouble)screen->h, 0.0, 0.0, 1.0);423 glOrtho(0.0, 1, 1, 0.0, 0.0, 1.0); 424 424 425 425 glMatrixMode(GL_MODELVIEW); … … 565 565 this->geTextCFPS->setName("curFPS"); 566 566 this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT); 567 this->geTextCFPS->setAbsCoor2D (5, 15);567 this->geTextCFPS->setAbsCoor2Dpx(5, 15); 568 568 } 569 569 if (this->geTextMaxFPS == NULL) … … 572 572 this->geTextMaxFPS->setName("MaxFPS"); 573 573 this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT); 574 this->geTextMaxFPS->setAbsCoor2D (5, 40);574 this->geTextMaxFPS->setAbsCoor2Dpx(5, 40); 575 575 } 576 576 if (this->geTextMinFPS == NULL) … … 579 579 this->geTextMinFPS->setName("MinFPS"); 580 580 this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT); 581 this->geTextMinFPS->setAbsCoor2D (5, 65);581 this->geTextMinFPS->setAbsCoor2Dpx(5, 65); 582 582 } 583 583 }
Note: See TracChangeset
for help on using the changeset viewer.