Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/volumetric_fog/src/lib/graphics/importer/objModel.h @ 10616

Last change on this file since 10616 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.1 KB
Line 
1/*!
2  \file objModel.h
3  \brief Contains the OBJ-model Class, that reads in a Model from a .obj-file
4*/
5
6#ifndef _OBJMODEL_H
7#define _OBJMODEL_H
8
9#include "static_model.h"
10
11//! A Class, that handles the parsing of an obj-file, and inclusion as a Model.
12class OBJModel : public StaticModel
13{
14  ObjectListDeclaration(OBJModel);
15public:
16  OBJModel(const std::string& fileName, float scaling = 1.0);
17  virtual ~OBJModel();
18
19private:
20  ///// readin /////
21  bool importFile (const std::string& fileName);
22  bool readFromObjFile (const std::string& fileName);
23  bool readMtlLib (const std::string& matFile);
24
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);
32
33private:
34  std::string       objPath;     //!< The Path where the obj and mtl-file are located.
35};
36
37#endif /* _OBJ_MODEL_H */
Note: See TracBrowser for help on using the repository browser.