Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10314 in orxonox.OLD for trunk/src/lib/graphics/importer/model.h


Ignore:
Timestamp:
Jan 24, 2007, 12:45:39 AM (18 years ago)
Author:
patrick
Message:

merged branche mount_point to trunk. this will add mount point abilities, bsp transparency fix and some other smaller stuff to this trunk

File:
1 edited

Legend:

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

    r10147 r10314  
    5252
    5353
     54//! skeleton informations for all mount points
     55typedef struct
     56{
     57  std::string      name;                 //!< the name of the mount point
     58  Vector           up;                   //!< the up vector
     59  Vector           forward;              //!< the forward vector
     60  Vector           center;               //!< the center vector
     61} mountPointSkeleton;
     62
     63
     64
    5465//! This class defines the basic components of a model
    5566class Model : virtual public BaseObject {
    5667  ObjectListDeclaration(Model);
     68
     69  typedef std::list<mountPointSkeleton>   mpList;
    5770
    5871  public:
     
    8598    /** function to extract the mount points from the model data */
    8699    virtual void extractMountPoints() {}
     100    /** @returns a list of mounting points */
     101    inline const mpList& getMountPoints() const { return this->mountPoints; }
     102    void addMountPoint(const Vector& up, const Vector& forward, const Vector& center, const std::string& name);
    87103
    88104
     
    92108
    93109  protected:
    94     modelInfo      pModelInfo;      //!< Reference to the modelInfo
     110    modelInfo                        pModelInfo;      //!< Reference to the modelInfo
     111    mpList                           mountPoints;     //!< a list of all mounting point skeletons
    95112};
    96113
Note: See TracChangeset for help on using the changeset viewer.