Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8316 in orxonox.OLD for trunk/src/lib/graphics/importer/texture.cc


Ignore:
Timestamp:
Jun 11, 2006, 1:57:27 PM (18 years ago)
Author:
bensch
Message:

trunk: fixed most -Wall warnings… but there are still many missing :/

File:
1 edited

Legend:

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

    r8312 r8316  
    3333/*
    3434 * On the BIG_ENDIAN architecture, the 24 and 32bit bitmaps have
    35  * different masks. If you don't do this distinction properly, 
     35 * different masks. If you don't do this distinction properly,
    3636 * you will get weird-looking textures.
    3737 */
     
    161161  unsigned int* pixels = new unsigned int[width * height * channels];
    162162  memset(pixels, 0, width * height * channels * sizeof(unsigned int));
    163  
    164  
     163
     164
    165165  glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
    166166  glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
     
    169169
    170170  glTexImage2D(target, 0, channels, width, height, 0, type, GL_UNSIGNED_INT, pixels);
    171  
    172  
    173  
     171
     172
     173
    174174  delete[] pixels;
    175175
     
    309309
    310310        Uint32* mask = opaqueMask;
    311        
     311
    312312  /* Save the alpha blending attributes */
    313313  saved_flags = surface->flags&(SDL_SRCALPHA | SDL_RLEACCELOK);
     
    320320                mask = alphaMask;
    321321  }
    322                
     322
    323323  retSurface = SDL_CreateRGBSurface(SDL_HWSURFACE,
    324324                                    surface->w, surface->h,
     
    360360  int      errorCode = 0;           //!< the error code for the texture loading functions
    361361  GLuint   texture = 0;             //!< the OpenGL texture handle
    362   int      mipmapLevel = 0;         //!< the maximum mipmap level for this texture
    363   int      mipmapWidth = 0;         //!< the width of the mipmap
    364   int      mipmapHight = 0;         //!< the height of the mipmap
     362  //int      mipmapLevel = 0;         //!< the maximum mipmap level for this texture
     363  //int      mipmapWidth = 0;         //!< the width of the mipmap
     364  //int      mipmapHight = 0;         //!< the height of the mipmap
    365365  GLenum   format = GL_RGB;
    366366  if (surface->format->BitsPerPixel == 32)
Note: See TracChangeset for help on using the changeset viewer.