Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5755 in orxonox.OLD for trunk/src/lib/graphics/importer


Ignore:
Timestamp:
Nov 24, 2005, 1:49:15 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: textures are rebuild on resize of the winodow (on winodws)

Location:
trunk/src/lib/graphics/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/texture.cc

    r5754 r5755  
    106106}
    107107
    108 bool Texture::reload()
     108bool Texture::rebuild()
    109109{
    110110  if (this->texture != 0)
     
    115115
    116116  if (this->image != NULL)
    117     this->texture = this->loadTexToGL(this->image);
     117    {
     118      PRINTF(4)("Reloading Texture %s\n", this->getName());
     119      this->texture = this->loadTexToGL(this->image);
     120    }
    118121 
    119122}
  • trunk/src/lib/graphics/importer/texture.h

    r5753 r5755  
    2929
    3030  bool loadImage(const char* imageName);
    31   bool reload();
     31  bool rebuild();
    3232
    3333  /** @returns The textureID of this texture.  */
Note: See TracChangeset for help on using the changeset viewer.