Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3127 in orxonox.OLD for orxonox/branches/images/importer/object.cc


Ignore:
Timestamp:
Dec 7, 2004, 8:02:05 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/images: Implemented a Way to read in the Files from any Directory.

  1. New Class created: PathList, handles lists of Paths (patrick… i really think this list is so small, that it does not make sense to use the list.h instead)
  2. Implemented it so it works. (windows-users should now be able to drag a file onto the importer, and it displays the file with all the maps and textures on it, if they are in the same directory as the obj-file)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/importer/object.cc

    r3122 r3127  
    353353  if (verbose >=2)
    354354    if (strlen(objPath)> 0)
    355       printf("Resolved file %s to folder: %s.\n", name, objPath);
     355      {
     356        printf("Resolved file %s to folder: %s.\n", name, objPath);
     357      }
    356358    else
    357359      printf("Resolved file %s.\n", name);
    358360 
     361  if (material)
     362    material->addTexturePath(objPath);
    359363  objFileName = new char[strlen(name)+1];
    360364  strcpy (objFileName, name);
Note: See TracChangeset for help on using the changeset viewer.