Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6634 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Jan 21, 2006, 1:18:19 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the network-branche back to the trunk

merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/network . -r6500:HEAD
minor conflicts in texture and one Makefile resolved to the trunk

also made a small patch to texture, so it Modulates with GL_REPEAT

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

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r6523 r6634  
    274274    this->hwExtensions = new SubString((char*)glGetString(GL_EXTENSIONS), " \n\t,");
    275275
    276   PRINT(4)("Running on : %s %s %s\n", vendor, renderer, version);
     276  PRINT(4)("Running on : vendor: %s,  renderer: %s,  version:%s\n", vendor, renderer, version);
    277277  PRINT(4)("Extensions:\n");
    278278  if (this->hwExtensions != NULL)
  • trunk/src/lib/graphics/importer/texture.cc

    r6532 r6634  
    260260  glBindTexture(target, texture);
    261261
    262   glTexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
     262  glTexParameteri(target, GL_TEXTURE_WRAP_S, GL_REPEAT);
     263  glTexParameteri(target, GL_TEXTURE_WRAP_R, GL_REPEAT);
     264
     265  glTexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_LINEAR/*_MIPMAP_LINEAR*/);
    263266  glTexParameteri(target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    264267
    265 
    266   glTexParameteri(target, GL_TEXTURE_WRAP_S, GL_REPEAT);
    267   glTexParameteri(target, GL_TEXTURE_WRAP_T, GL_REPEAT);
     268  glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_PRIORITY, this->priority);
     269
    268270
    269271  /* control the mipmap levels */
    270 //   glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_MIN_LOD, 5);f
    271 //   glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_MAX_LOD, 0);
    272   glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_PRIORITY, this->priority);
     272  glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_MIN_LOD, 5);
     273  glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_MAX_LOD, 0);
    273274
    274275  /* build the Texture  OpenGL V >= 1.1 */
     
    295296    PRINTF(1)("Error while loading texture (mipmap generation), gluBuild2DMipmaps returned %i\n", errorCode);
    296297
     298  // Deselect newly built texture, as we do not want to display with this texture.
    297299  if (target == GL_TEXTURE_2D)
    298300    glBindTexture(target, 0);
     301
    299302  return texture;
    300303}
Note: See TracChangeset for help on using the changeset viewer.