Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/importer/importer/object.h @ 2769

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

orxonox/branches/importer: simple color-randomizer if new material asked

File size: 696 bytes
Line 
1#include "windowHandler.h"
2#include "array.h"
3#include <fstream.h>
4
5class Object
6{
7 public:
8  Object ();
9  Object (char* fileName);
10  ~Object ();
11 
12  bool importFile (char* fileName);
13  bool initialize (void);
14  bool finalize(void);
15  void draw (void);
16
17  bool readFromObjFile (char* fileName);
18
19
20 private:
21  GLuint listNumber;
22  Array* vertices;
23  int verticesCount;
24  Array* colors;
25  Array* faces;
26  char* objFile;
27  int faceMode;
28  bool readVertices;
29
30  ifstream* OBJ_FILE;
31  ifstream* MTL_FILE;
32 
33  bool readVertex (char* vertexString);
34  bool readFace (char* faceString);
35  bool readVT (char* vtString);
36  bool readUseMtl (char* matString);
37
38  bool addGLElement (char* elementString);
39};
Note: See TracBrowser for help on using the repository browser.