Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4806 in orxonox.OLD


Ignore:
Timestamp:
Jul 7, 2005, 11:44:59 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the important interface functions are now implemented directly in abstract model.

Location:
orxonox/trunk/src/lib/graphics/importer
Files:
3 edited

Legend:

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

    r4804 r4806  
    137137class AbstractModel : public BaseObject {
    138138
    139  public:
    140   AbstractModel() {}
    141   virtual ~AbstractModel() {}
     139  public:
     140    AbstractModel() {}
     141    virtual ~AbstractModel() {}
     142
     143    inline modelInfo* getModelInfo() const { return this->pModelInfo; }
     144
     145
     146  protected:
     147    modelInfo*     pModelInfo;      //!< Reference to the modelInfo defined in abstract_model.h
    142148};
    143149
  • orxonox/trunk/src/lib/graphics/importer/model.cc

    r4804 r4806  
    198198  delete tmpIt;
    199199  delete materialList;
     200  delete this->pModelInfo;
    200201}
    201202
  • orxonox/trunk/src/lib/graphics/importer/model.h

    r4804 r4806  
    9797
    9898//! Class that handles 3D-Models. it can also read them in and display them.
    99 class Model : public BaseObject
     99class Model : public AbstractModel
    100100{
    101101 public:
     
    128128  inline unsigned int getFaceCount() const { return this->faceCount; };
    129129
    130   inline modelInfo* getModelInfo() const { return this->pModelInfo; }
    131130
    132131  Material* addMaterial(Material* material);
     
    181180  Array<GLfloat>*  vTexture;        //!< The Array that handles the VertexTextureCoordinates.
    182181  sTriangleExt*    triangles;       //!< The Array of triangles in the abstract_model.h style
    183   modelInfo*       pModelInfo;      //!< Reference to the modelInfo defined in abstract_model.h
    184182
    185183  ModelGroup*      firstGroup;      //!< The first of all groups.
Note: See TracChangeset for help on using the changeset viewer.