Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/src/lib/graphics/importer/objModel.h @ 3499

Last change on this file since 3499 was 3499, checked in by chris, 19 years ago

orxonox/branches/levelloader: merged updated trunk structure into levelloader branch

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.