Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10147 in orxonox.OLD for trunk/src/lib/graphics/importer/obj


Ignore:
Timestamp:
Dec 25, 2006, 1:30:44 PM (18 years ago)
Author:
patrick
Message:

merged the mount_point branche back to trunk to use the new std::* based obj file importer

Location:
trunk/src/lib/graphics/importer/obj
Files:
2 edited

Legend:

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

    r10033 r10147  
    4444
    4545  this->finalize();
     46
     47  this->extractMountPoints();
    4648}
    4749
     
    138140          this->addVertexTexture(buffer+3);
    139141        }
    140       // case group
    141       else if (!strncmp(buffer, "g ", 2))
     142      // case group or object (depends on the exporter program)
     143      else if (!strncmp(buffer, "g ", 2) || !strncmp(buffer, "o ", 2))
    142144        {
    143145          this->addGroup (buffer+2);
  • trunk/src/lib/graphics/importer/obj/objModel.h

    r10033 r10147  
    1616  OBJModel(const std::string& fileName, float scaling = 1.0);
    1717  virtual ~OBJModel();
     18
    1819
    1920private:
Note: See TracChangeset for help on using the changeset viewer.