Changeset 8316 in orxonox.OLD for trunk/src/lib/graphics/importer/texture.cc
- Timestamp:
- Jun 11, 2006, 1:57:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture.cc
r8312 r8316 33 33 /* 34 34 * 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, 36 36 * you will get weird-looking textures. 37 37 */ … … 161 161 unsigned int* pixels = new unsigned int[width * height * channels]; 162 162 memset(pixels, 0, width * height * channels * sizeof(unsigned int)); 163 164 163 164 165 165 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); 166 166 glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); … … 169 169 170 170 glTexImage2D(target, 0, channels, width, height, 0, type, GL_UNSIGNED_INT, pixels); 171 172 173 171 172 173 174 174 delete[] pixels; 175 175 … … 309 309 310 310 Uint32* mask = opaqueMask; 311 311 312 312 /* Save the alpha blending attributes */ 313 313 saved_flags = surface->flags&(SDL_SRCALPHA | SDL_RLEACCELOK); … … 320 320 mask = alphaMask; 321 321 } 322 322 323 323 retSurface = SDL_CreateRGBSurface(SDL_HWSURFACE, 324 324 surface->w, surface->h, … … 360 360 int errorCode = 0; //!< the error code for the texture loading functions 361 361 GLuint texture = 0; //!< the OpenGL texture handle 362 int mipmapLevel = 0; //!< the maximum mipmap level for this texture363 int mipmapWidth = 0; //!< the width of the mipmap364 int mipmapHight = 0; //!< the height of the mipmap362 //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 365 365 GLenum format = GL_RGB; 366 366 if (surface->format->BitsPerPixel == 32)
Note: See TracChangeset
for help on using the changeset viewer.