Changeset 3108 in orxonox.OLD for orxonox/branches/images/importer
- Timestamp:
- Dec 6, 2004, 12:13:50 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/images/importer/material.cc
r3107 r3108 391 391 pImage->width = map->w; 392 392 pImage->data = (GLubyte*)map->pixels; 393 394 SDL_RWops *imgType;395 imgType=SDL_RWFromFile(imageName, "rb");396 393 if( !IMG_isPNG(SDL_RWFromFile(imageName, "rb")) && !IMG_isJPG(SDL_RWFromFile(imageName, "rb"))) 397 394 for (int i=0;i<map->h * map->w *3;i+=3)
Note: See TracChangeset
for help on using the changeset viewer.