Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/importer/objModel.h @ 3410

Last change on this file since 3410 was 3396, checked in by bensch, 20 years ago

orxonox/trunk: splitted obj-loader out of the model-class: this will enable different kinds of Filetypes to be included with the importer.
Althought there is a name-field error, the Model gets loaded and unloaded as good as previously

File size: 806 bytes
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 "model.h"
10
11//! A Class, that handles the parsing of an obj-file, and inclusion as a Model.
12class OBJModel : public Model
13{
14 public:
15  OBJModel(char* fileName);
16  OBJModel(char* fileName, float scaling);
17  virtual ~OBJModel();
18  void initializeOBJ(void);
19
20 private:
21  // Variables
22  char* objPath;        //!< The Path where the obj and mtl-file are located.
23  char* objFileName;    //!< The Name of the obj-file.
24  char* mtlFileName;    //!< The Name of the mtl-file (parsed out of the obj-file)
25
26  ///// readin /////
27  bool importFile (char* fileName);
28  bool readFromObjFile (void);
29  bool readMtlLib (char* matFile);
30
31};
32
33#endif /* _OBJ_MODEL_H */
Note: See TracBrowser for help on using the repository browser.