Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2006, 3:46:41 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: testing if it works on WIndows like this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/elements/image_entity.cc

    r7221 r7730  
    4949ImageEntity::~ImageEntity ()
    5050{
    51   if (this->material)
    52     delete this->material;
    5351}
    54 
    5552
    5653/**
     
    6764
    6865  this->setBindNode(this);
    69   this->material = new Material;
    70   this->setTexture("pictures/error_texture.png");
     66  //this->setTexture("pictures/error_texture.png");
    7167  this->bBillboarding = false;
    7268}
     
    7874  Element2D::loadParams(root);
    7975
    80   LoadParam(root, "texture", this, ImageEntity, setTexture)
    81       .describe("the texture-file to load onto the ImageEntity");
     76//   LoadParam(root, "texture", this, ImageEntity, setTexture)
     77//       .describe("the texture-file to load onto the ImageEntity");
    8278
    8379  LoadParam(root, "size", this, ImageEntity, setSize)
     
    108104void ImageEntity::setTexture(const std::string& textureFile)
    109105{
    110   this->material->setDiffuseMap(textureFile);
     106 //   this->material.setDiffuseMap(textureFile);
    111107}
    112108
     
    144140
    145141  //glRotatef(this->getAbsDir2D(), 0,0,1);
    146   this->material->select();
     142  this->material.select();
    147143  glBegin(GL_TRIANGLE_STRIP);
    148144  glTexCoord2f(0, 0);
Note: See TracChangeset for help on using the changeset viewer.