Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5228 in orxonox.OLD for trunk


Ignore:
Timestamp:
Sep 23, 2005, 11:38:20 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: nicer rendering of the Textures (LINEAR instead of NEAREST

File:
1 edited

Legend:

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

    r5212 r5228  
    112112      glGenTextures(1, &texture);
    113113      glBindTexture(GL_TEXTURE_2D, texture);
    114       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
    115       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
     114      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
     115      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
    116116      // build the Texture
    117117      glTexImage2D(GL_TEXTURE_2D,
     
    133133
    134134      SDL_FreeSurface(image); /* No longer needed */
    135 
     135      glBindTexture(GL_TEXTURE_2D, 0);
    136136      return texture;
    137137    }
Note: See TracChangeset for help on using the changeset viewer.