Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10184 in orxonox.OLD for branches/mount_points/src/lib


Ignore:
Timestamp:
Jan 6, 2007, 5:03:27 PM (18 years ago)
Author:
patrick
Message:

extended model again, added mounting point generation procedures now working on a nicer interface

Location:
branches/mount_points/src/lib/graphics/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/lib/graphics/importer/model.h

    r10182 r10184  
    5555typedef struct
    5656{
     57  std::string      name;                 //!< the name of the mount point
    5758  Vector           up;                   //!< the up vector
    5859  Vector           forward;              //!< the forward vector
     
    100101    inline const mpList& getMountPoints() const { return this->mountPoints; }
    101102    /** adds a mounting point to the model @param up up vector @param forward forward vector @param center center vector */
    102     inline void addMountPoint(Vector up, Vector forward, Vector center)
    103     { mountPointSkeleton mps; mps.up = up; mps.forward = forward; mps.center = center; }
     103    inline void addMountPoint(const Vector& up, const Vector& forward, const Vector& center, const std::string& name)
     104    { mountPointSkeleton mps; mps.up = up; mps.forward = forward; mps.center = center; mps.name = name; }
    104105
    105106
  • branches/mount_points/src/lib/graphics/importer/static_model.cc

    r10183 r10184  
    197197
    198198    // now add the mount point
    199     this->addMountPoint( up, forward, center);
     199    this->addMountPoint( up, forward, center, groupName);
    200200  }
    201201}
Note: See TracChangeset for help on using the changeset viewer.