Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2006, 3:18:28 PM (18 years ago)
Author:
bensch
Message:

added resource_obj for new resource managed obj-loader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/importer/objModel.h

    r9715 r9831  
    1313{
    1414  ObjectListDeclaration(OBJModel);
    15   public:
    16    OBJModel(const std::string& fileName, float scaling = 1.0);
     15public:
     16  OBJModel(const std::string& fileName, float scaling = 1.0);
    1717  virtual ~OBJModel();
    1818
    19  private:
     19private:
    2020  ///// readin /////
    21    bool importFile (const std::string& fileName);
    22    bool readFromObjFile (const std::string& fileName);
    23    bool readMtlLib (const std::string& matFile);
     21  bool importFile (const std::string& fileName);
     22  bool readFromObjFile (const std::string& fileName);
     23  bool readMtlLib (const std::string& matFile);
    2424
    25   private:
    26    void setIllum (Material* material, const char* illum);
    27    void setDiffuse (Material* material, const char* rgb);
    28    void setAmbient (Material* material, const char* rgb);
    29    void setSpecular (Material* material, const char* rgb);
    30    void setShininess (Material* material, const char* shini);
    31    void setTransparency (Material* material, const char* trans);
     25private:
     26  void setIllum (Material* material, const char* illum);
     27  void setDiffuse (Material* material, const char* rgb);
     28  void setAmbient (Material* material, const char* rgb);
     29  void setSpecular (Material* material, const char* rgb);
     30  void setShininess (Material* material, const char* shini);
     31  void setTransparency (Material* material, const char* trans);
    3232
    33  private:
    34    std::string       objPath;     //!< The Path where the obj and mtl-file are located.
     33private:
     34  std::string       objPath;     //!< The Path where the obj and mtl-file are located.
    3535};
    3636
Note: See TracChangeset for help on using the changeset viewer.