Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5158 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Sep 4, 2005, 10:20:59 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better drawing of the Shell

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/orxonox.cc

    r5098 r5158  
    2121   ### File Specific:
    2222   main-programmer: Patrick Boenzli
    23    co-programmer: Christian Meyer
     23co-programmer: Christian Meyer
    2424   co-programmer: Benjamin Grauer: injected ResourceManager/GraphicsEngine/GUI
    2525*/
     
    3131#include "world.h"
    3232#include "ini_parser.h"
    33 #include "game_loader.h"
     33#include "game_loader.h"               
    3434
    3535//ENGINES
  • trunk/src/util/shell.cc

    r5157 r5158  
    5656  //this->bufferSize = 0;
    5757  this->bufferText = NULL;
    58   this->setBufferSize(100);
     58  this->setBufferSize(10);
    5959  this->bufferDisplaySize = 10;
    6060  this->setAbsCoor2D(3, -400);
     
    184184    this->bufferText[i]->setText(this->bufferIterator->prevElement(), false);
    185185}
     186
    186187
    187188/**
     
    632633  glBlendFunc(GL_SRC_ALPHA, GL_ONE);
    633634
    634 //  glBindTexture(GL_TEXTURE_2D, this->texture);
    635   glBegin(GL_QUADS);
    636 
    637 //  glTexCoord2f(this->texCoord.minU, this->texCoord.minV);
     635  glBindTexture(GL_TEXTURE_2D, 0);
     636  glBegin(GL_TRIANGLE_STRIP);
     637
     638  glTexCoord2f(0, 0);
    638639  glVertex2f(this->getAbsCoor2D().x,   this->getAbsCoor2D().y  );
    639640
    640 //  glTexCoord2f(this->texCoord.maxU, this->texCoord.minV);
     641  glTexCoord2f(1, 0);
    641642  glVertex2f(GraphicsEngine::getInstance()->getResolutionX() - this->getAbsCoor2D().x, this->getAbsCoor2D().y  );
    642643
    643 //  glTexCoord2f(this->texCoord.maxU, this->texCoord.maxV);
     644  glTexCoord2f(0, 1);
     645  glVertex2f(this->getAbsCoor2D().x, this->getAbsCoor2D().y + this->shellHeight);
     646
     647  glTexCoord2f(1, 1);
    644648  glVertex2f(GraphicsEngine::getInstance()->getResolutionX() - this->getAbsCoor2D().x, this->getAbsCoor2D().y + this->shellHeight);
    645 
    646 //  glTexCoord2f(this->texCoord.minU, this->texCoord.maxV);
    647   glVertex2f(this->getAbsCoor2D().x, this->getAbsCoor2D().y + this->shellHeight);
    648649
    649650  glEnd();
Note: See TracChangeset for help on using the changeset viewer.