Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/importer/src/object.h @ 2808

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

orxonox/branches/importer: importer includes into the source

File size: 881 bytes
RevLine 
[2776]1#ifndef _OBJECT_H
2#define _OBJECT_H
[2773]3
4#include <GL/gl.h>
5#include <GL/glu.h>
6
[2754]7#include "array.h"
[2776]8#include "material.h"
[2765]9#include <fstream.h>
[2748]10
11class Object
12{
13 public:
14  Object ();
[2767]15  Object (char* fileName);
[2748]16  ~Object ();
17 
[2767]18  bool importFile (char* fileName);
19  bool initialize (void);
20  bool finalize(void);
21  void draw (void);
22
[2754]23  bool readFromObjFile (char* fileName);
[2748]24
25
26 private:
27  GLuint listNumber;
[2754]28  Array* vertices;
29  int verticesCount;
30  Array* colors;
[2794]31  Array* normals;
[2767]32  char* objFile;
33  int faceMode;
34  bool readVertices;
[2776]35  Material* material;
[2760]36
[2765]37  ifstream* OBJ_FILE;
38  ifstream* MTL_FILE;
[2748]39 
[2767]40  bool readVertex (char* vertexString);
41  bool readFace (char* faceString);
42  bool readVT (char* vtString);
[2794]43  bool readVertexNormal (char* normalString);
[2776]44  bool readMtlLib (char* matFile);
45  bool readUseMtl (char* mtlString);
[2754]46
[2768]47  bool addGLElement (char* elementString);
[2748]48};
[2773]49
50#endif
Note: See TracBrowser for help on using the repository browser.