Changeset 3091 in orxonox.OLD for orxonox/branches
- Timestamp:
- Dec 5, 2004, 12:15:02 AM (20 years ago)
- Location:
- orxonox/branches/images/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/images/importer/material.cc
r3090 r3091 480 480 pImage->data[i+2] = temp; 481 481 } 482 loadTexToGL (pImage ->sizeX, pImage->sizeY, pImage->data, texture);482 loadTexToGL (pImage, texture); 483 483 484 484 return true; … … 538 538 exit(0); 539 539 540 loadTexToGL (pImage ->sizeX, pImage->sizeY, pImage->data, texture);540 loadTexToGL (pImage, texture); 541 541 if (pImage) 542 542 { … … 590 590 } 591 591 592 bool Material::loadTexToGL ( int hight, int width, void* rawImage, GLuint* texture)592 bool Material::loadTexToGL (Image* pImage, GLuint* texture) 593 593 { 594 594 glGenTextures(1, texture); … … 599 599 GL_UNSIGNED_BYTE, map->pixels ); 600 600 */ 601 gluBuild2DMipmaps(GL_TEXTURE_2D, 3, width, hight, GL_RGB, GL_UNSIGNED_BYTE, rawImage);601 gluBuild2DMipmaps(GL_TEXTURE_2D, 3, pImage->sizeX, pImage->sizeY, GL_RGB, GL_UNSIGNED_BYTE, pImage->data); 602 602 603 603 glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST); -
orxonox/branches/images/importer/material.h
r3090 r3091 92 92 void decodeJPG(jpeg_decompress_struct* cinfo, Image *pImageData); 93 93 94 bool loadTexToGL ( int hight, int width, void* rawImage, GLuint* texture);94 bool loadTexToGL (Image* pImage, GLuint* texture); 95 95 }; 96 96 #endif
Note: See TracChangeset
for help on using the changeset viewer.