Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 15, 2005, 1:49:17 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some 2d-adaptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2d-recalc/src/lib/graphics/graphics_engine.cc

    r5347 r5380  
    301301    glMatrixMode(GL_PROJECTION_MATRIX);
    302302    glLoadIdentity();
    303     glViewport(0,0,width,height);                                                   // Reset The Current Viewport
     303    glViewport(0,0,width,height);    // Reset The Current Viewport
    304304}
    305305
     
    421421  glLoadIdentity();
    422422
    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);
    424424
    425425  glMatrixMode(GL_MODELVIEW);
     
    565565    this->geTextCFPS->setName("curFPS");
    566566    this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT);
    567     this->geTextCFPS->setAbsCoor2D(5, 15);
     567    this->geTextCFPS->setAbsCoor2Dpx(5, 15);
    568568  }
    569569  if (this->geTextMaxFPS == NULL)
     
    572572    this->geTextMaxFPS->setName("MaxFPS");
    573573    this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT);
    574     this->geTextMaxFPS->setAbsCoor2D(5, 40);
     574    this->geTextMaxFPS->setAbsCoor2Dpx(5, 40);
    575575  }
    576576  if (this->geTextMinFPS == NULL)
     
    579579    this->geTextMinFPS->setName("MinFPS");
    580580    this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT);
    581     this->geTextMinFPS->setAbsCoor2D(5, 65);
     581    this->geTextMinFPS->setAbsCoor2Dpx(5, 65);
    582582  }
    583583}
Note: See TracChangeset for help on using the changeset viewer.