Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/graphics/importer/objModel.h @ 4063

Last change on this file since 4063 was 3916, checked in by bensch, 19 years ago

orxonox/trunk: prepare for VertexArrays

File size: 801 bytes
RevLine 
[3396]1/*!
[3454]2  \file objModel.h
[3396]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:
[3916]15  OBJModel(const char* fileName, float scaling = 1.0);
[3396]16  virtual ~OBJModel();
17  void initializeOBJ(void);
18
19 private:
20  // Variables
21  char* objPath;        //!< The Path where the obj and mtl-file are located.
22  char* objFileName;    //!< The Name of the obj-file.
23  char* mtlFileName;    //!< The Name of the mtl-file (parsed out of the obj-file)
24
25  ///// readin /////
[3916]26  bool importFile (const char* fileName);
[3396]27  bool readFromObjFile (void);
[3916]28  bool readMtlLib (const char* matFile);
[3396]29};
30
31#endif /* _OBJ_MODEL_H */
Note: See TracBrowser for help on using the repository browser.